Search
⌘K
Leetcode 503. Next Greater Element II
Given a circular array, for each element find the first greater value encountered when traversing right (wrapping around), or return -1 if none exists. This is a next-greater-element problem typically solved with a monotonic decreasing stack to handle wrap-around efficiently.
Asked at:
Waymo
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late April, 2026
Waymo
Senior
Hello Interview Premium
Your account is free and you can post anonymously if you choose.