Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

min vector c++

// std::min_element(begin_iterator, end_iterator);
std::vector<int> v = {3, 2, 1, 4, 5, 6};
std::cout << "Min element: " << *std::min_element(v.begin(), v.end());
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #min #vector
ADD COMMENT
Topic
Name
4+3 =