Tag: monotonic-stack
- 132 Pattern
- Apply Operations to Maximize Score
- Beautiful Towers I
- Beautiful Towers II
- Buildings With an Ocean View
- Car Fleet II
- Car Fleet
- Construct Binary Search Tree from Preorder Traversal
- Count Non-Decreasing Subarrays After K Operations
- Count Submatrices With All Ones
- Create Maximum Number
- Daily Temperatures
- Final Prices With a Special Discount in a Shop
- Find Building Where Alice and Bob Can Meet
- Find Maximum Non-decreasing Array Length
- Find Sorted Submatrices With Maximum Element at Most K
- Find the Most Competitive Subsequence
- Find the Number of Subarrays Where Boundary Elements Are Maximum
- Finding the Number of Visible Mountains
- Jump Game VIII
- Largest Rectangle in Histogram
- Longest Well-Performing Interval
- Max Chunks To Make Sorted II
- Max Chunks To Make Sorted
- Maximal Range That Each Element Is Maximum in It
- Maximal Rectangle
- Maximum and Minimum Sums of at Most Size K Subarrays
- Maximum Array Hopping Score I
- Maximum Array Hopping Score II
- Maximum Binary Tree
- Maximum Length of Semi-Decreasing Subarrays
- Maximum Number of Books You Can Take
- Maximum of Minimum Values in All Subarrays
- Maximum Score of a Good Subarray
- Maximum Subarray Min-Product
- Maximum Sum Queries
- Maximum Width Ramp
- Minimum Cost Tree From Leaf Values
- Minimum Number of Increments on Subarrays to Form a Target Array
- Minimum Number of Visited Cells in a Grid
- Minimum Operations to Make Array Equal to Target
- Next Greater Element I
- Next Greater Element II
- Next Greater Element IV
- Next Greater Node In Linked List
- Number of People That Can Be Seen in a Grid
- Number of Valid Subarrays
- Number of Visible People in a Queue
- Odd Even Jump
- Online Stock Span
- Remove Duplicate Letters
- Remove K Digits
- Remove Nodes From Linked List
- Shortest Subarray to be Removed to Make Array Sorted
- Shortest Unsorted Continuous Subarray
- Smallest K-Length Subsequence With Occurrences of a Letter
- Smallest Subsequence of Distinct Characters
- Steps to Make Array Non-decreasing
- Subarray With Elements Greater Than Varying Threshold
- Sum of Subarray Minimums
- Sum of Subarray Ranges
- Sum of Total Strength of Wizards
- The Number of Weak Characters in the Game
- Trapping Rain Water
- Verify Preorder Sequence in Binary Search Tree