Skip to content

Topic: Monotonic Stack

53 problems
TitleStatusDifficulty
Trapping Rain WaterHard
Largest Rectangle in HistogramHard
Maximal RectangleHard
Remove Duplicate LettersMedium
Create Maximum NumberHard
Remove K DigitsMedium
132 PatternMedium
Next Greater Element IEasy
Next Greater Element IIMedium
Shortest Unsorted Continuous SubarrayMedium
Maximum Binary TreeMedium
Daily TemperaturesMedium
Max Chunks To Make Sorted IIHard
Car FleetMedium
Online Stock SpanMedium
Sum of Subarray MinimumsMedium
Maximum Width RampMedium
Odd Even JumpHard
Construct Binary Search Tree from Preorder TraversalMedium
Next Greater Node In Linked ListMedium
Smallest Subsequence of Distinct CharactersMedium
Longest Well-Performing IntervalMedium
Minimum Cost Tree From Leaf ValuesMedium
Final Prices With a Special Discount in a ShopEasy
Count Submatrices With All OnesMedium
Minimum Number of Increments on Subarrays to Form a Target ArrayHard
Shortest Subarray to be Removed to Make Array SortedMedium
Find the Most Competitive SubsequenceMedium
Car Fleet IIHard
Maximum Score of a Good SubarrayHard
Maximum Subarray Min-ProductMedium
Number of Visible People in a QueueHard
The Number of Weak Characters in the GamereadMedium
Smallest K-Length Subsequence With Occurrences of a LetterHard
Sum of Subarray RangesMedium
Sum of Total Strength of WizardsHard
Steps to Make Array Non-decreasingMedium
Subarray With Elements Greater Than Varying ThresholdHard
Next Greater Element IVHard
Remove Nodes From Linked ListMedium
Minimum Number of Visited Cells in a GridreadHard
Maximum Sum QueriesHard
Apply Operations to Maximize ScoreHard
Beautiful Towers IMedium
Beautiful Towers IIMedium
Find Building Where Alice and Bob Can MeetreadHard
Find Maximum Non-decreasing Array LengthHard
Find the Number of Subarrays Where Boundary Elements Are MaximumHard
Minimum Operations to Make Array Equal to TargetHard
Count Non-Decreasing Subarrays After K OperationsHard
Page 1 of 2