min element in stl c 2b 2b

Solutions on MaxInterview for min element in stl c 2b 2b by the best coders in the world

showing results for - "min element in stl c 2b 2b"
Francesca
12 Jun 2016
1#include <bits/stdc++.h>
2using namespace std;
3int main()
4{
5  	vector<int> v{ 9, 4, 7, 2, 5, 10, 11, 12, 1, 3, 6 };
6	int c = *min_element(v.begin(), v.end());
7  
8    cout<<"Min Element of the vector is "<< c;
9    return 0;
10}