Monotonic Stack Problems

Master monotonic stack problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 43 problems in this category.

Total Problems: 43
Easy: 2
Medium: 24
Hard: 17
Showing 43 of 43 problems

Problems

Scroll within this area to browse all problems

#
Title
Difficulty
42

Trapping Rain Water

Hard
496

Next Greater Element I

Easy
883

Car Fleet

Medium
1570

Final Prices With a Special Discount in a Shop

Easy
456

132 Pattern

Medium
503

Next Greater Element II

Medium
937

Online Stock Span

Medium
316

Remove Duplicate Letters

Medium
84

Largest Rectangle in Histogram

Hard
581

Shortest Unsorted Continuous Subarray

Medium
321

Create Maximum Number

Hard
1050

Construct Binary Search Tree from Preorder Traversal

Medium
739

Daily Temperatures

Medium
3114

Beautiful Towers I

Medium
3113

Beautiful Towers II

Medium
1902

Car Fleet II

Hard
2227

Sum of Subarray Ranges

Medium
1305

Number of Visible People in a Queue

Hard
943

Sum of Subarray Minimums

Medium
402

Remove K Digits

Medium
3181

Find Building Where Alice and Bob Can Meet

Hard
1628

Count Submatrices With All Ones

Medium
2368

Sum of Total Strength of Wizards

Hard
1985

Maximum Subarray Min-Product

Medium
2123

The Number of Weak Characters in the Game

Medium
85

Maximal Rectangle

Hard
2573

Remove Nodes From Linked List

Medium
1633

Minimum Number of Increments on Subarrays to Form a Target Array

Hard
654

Maximum Binary Tree

Medium
3382

Find the Number of Subarrays Where Boundary Elements Are Maximum

Hard
1017

Odd Even Jump

Hard
2419

Subarray With Elements Greater Than Varying Threshold

Hard
1918

Maximum Score of a Good Subarray

Hard
1072

Next Greater Node In Linked List

Medium
3725

Maximum and Minimum Sums of at Most Size K Subarrays

Hard
779

Max Chunks To Make Sorted II

Hard
780

Max Chunks To Make Sorted

Medium
3954

Maximum Balanced Shipments

Medium
1002

Maximum Width Ramp

Medium
1228

Minimum Cost Tree From Leaf Values

Medium
2549

Next Greater Element IV

Hard
1159

Smallest Subsequence of Distinct Characters

Medium
2157

Smallest K-Length Subsequence With Occurrences of a Letter

Hard

Monotonic Stack LeetCode Problems List

Related LeetCode Topics

Monotonic Stack LeetCode Problems - Interview Coder