#Program NamePatternTimeSpaceKey IdeaLevel
1isValidParenthesesStackO(n)O(n)Push opens; on close, check if top of stack is the matching open bracket.Simple
2dailyTemperaturesMonotonic StackO(n)O(n)Maintain a decreasing stack of indices; pop when a warmer day is found.Middle
3slidingWindowMaximumMonotonic DequeO(n)O(k)Keep a decreasing deque of indices; front is always the max of current window.Complex