Math, asked by ramit4197, 8 months ago

how to find minimum value in set with example​

Answers

Answered by akshrajain30aug2007
0

Step-by-step explanation:

Find Maximum and Minimum element in a Set in C++ STL

Using set.begin() and set.end() methods. Approach: Elements in a set are stored in sorted order. So the minimum element of the set will reside in the first element and the maximum element in the last element. ...

Using set.rbegin() and set.rend() methods. Approach: Elements in a set are stored in sorted order.

Similar questions