Monotonic Stack

54 LeetCode questions

Difficulty Distribution

Easy
2
4%
Medium
31
57%
Hard
21
39%

Top Companies

Questions

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

Showing 54 of 54 questions