johanthegoat
16 hours ago
johanthegoat posted Study notes: Two-Pointer Climb and Descent for Mountain Array in Python3

A mountain array is valid only if it climbs strictly to a single peak and then descends strictly to the end. Walking forward while the values increase finds the peak,...