Skip to content

Topic: Monotonic Stack

53 problems
TitleStatusDifficulty
Trapping Rain Water—Hard
Largest Rectangle in Histogram—Hard
Maximal Rectangle—Hard
Remove Duplicate Letters—Medium
Create Maximum Number—Hard
Remove K Digits—Medium
132 Pattern—Medium
Next Greater Element I—Easy
Next Greater Element II—Medium
Shortest Unsorted Continuous Subarray—Medium
Maximum Binary Tree—Medium
Daily Temperatures—Medium
Max Chunks To Make Sorted II—Hard
Car Fleet—Medium
Online Stock Span—Medium
Sum of Subarray Minimums—Medium
Maximum Width Ramp—Medium
Odd Even Jump—Hard
Construct Binary Search Tree from Preorder Traversal—Medium
Next Greater Node In Linked List—Medium
Smallest Subsequence of Distinct Characters—Medium
Longest Well-Performing Interval—Medium
Minimum Cost Tree From Leaf Values—Medium
Final Prices With a Special Discount in a Shop—Easy
Count Submatrices With All Ones—Medium
Minimum Number of Increments on Subarrays to Form a Target Array—Hard
Shortest Subarray to be Removed to Make Array Sorted—Medium
Find the Most Competitive Subsequence—Medium
Car Fleet II—Hard
Maximum Score of a Good Subarray—Hard
Maximum Subarray Min-Product—Medium
Number of Visible People in a Queue—Hard
The Number of Weak Characters in the Gameread—Medium
Smallest K-Length Subsequence With Occurrences of a Letter—Hard
Sum of Subarray Ranges—Medium
Sum of Total Strength of Wizards—Hard
Steps to Make Array Non-decreasing—Medium
Subarray With Elements Greater Than Varying Threshold—Hard
Next Greater Element IV—Hard
Remove Nodes From Linked List—Medium
Minimum Number of Visited Cells in a Gridread—Hard
Maximum Sum Queries—Hard
Apply Operations to Maximize Score—Hard
Beautiful Towers I—Medium
Beautiful Towers II—Medium
Find Building Where Alice and Bob Can Meetread—Hard
Find Maximum Non-decreasing Array Length—Hard
Find the Number of Subarrays Where Boundary Elements Are Maximum—Hard
Minimum Operations to Make Array Equal to Target—Hard
Count Non-Decreasing Subarrays After K Operations—Hard
Page 1 of 2