Re:Simple Proof to the Container with Most Water Problem
by jdsully on Sunday January 05, 2020 @03:53AM
(#21960375)
Perhaps your not aware of C++ random_access iterators? You can indeed do random access with iterators and this functionality is integral to many standard library algorithms.
http://www.cplusplus.com/reference/iterator/RandomAccessIter...