Problem B14 · Easy

Next Greater Element: Resolve a Waiting Stack

Find the first strictly greater value to the right of every array position.

Open the interactive visualisation