Fundamentals
/
Monotonic Stack/Deque Intro
⏸
00:00
↻
← Prev
Next →
▶
Question
Given an array of integers, return an array where result[i] is the next greater element to the right of arr[i], or -1 if none. Use a monotonic stack.
▶
Understand
▶
Approach
▶
My Code
▶
Reference Solution
Compare
8