Problem 769 · Medium
In a permutation of 0..n-1, cut wherever the prefix maximum equals the index.
Open the interactive visualisation