Re:Optimizations on Linear Search (2016)
by CyberDildonics on Sunday October 04, 2020 @11:22AM
(#24679668)
That 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.
[1] https://en.cppreference.com/w/cpp/algorithm/max_element