4 ms·
Standard C++ also has std::max_element [1] (and accidentally the possible implementation looks surprisingly familiar). Not that I know much of C++. [1] https:/
by lixtra 6y ago
Standard C++ also has std::max_element [1] (and accidentally the possible implementation looks surprisingly familiar). Not that I know much of C++.
[1] https://en.cppreference.com/w/cpp/algorithm/max_element https://en.cppreference.com/w/cpp/algorithm/max_element
- CyberDildonics 6y agoThat returns an iterator the max element, not the value. I'm not sure which part makes this so difficult that everyone fails on the first try.