Stack Problems

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

Total Problems: 120
Easy: 23
Medium: 65
Hard: 32
Showing 50 of 120 problems

Problems

Scroll within this area to browse all problems

#
Title
Difficulty
144

Binary Tree Preorder Traversal

Easy
94

Binary Tree Inorder Traversal

Easy
145

Binary Tree Postorder Traversal

Easy
20

Valid Parentheses

Easy
42

Trapping Rain Water

Hard
234

Palindrome Linked List

Easy
224

Basic Calculator

Hard
155

Min Stack

Medium
114

Flatten Binary Tree to Linked List

Medium
227

Basic Calculator II

Medium
496

Next Greater Element I

Easy
735

Asteroid Collision

Medium
394

Decode String

Medium
883

Car Fleet

Medium
71

Simplify Path

Medium
1570

Final Prices With a Special Discount in a Shop

Easy
32

Longest Valid Parentheses

Hard
225

Implement Stack using Queues

Easy
456

132 Pattern

Medium
341

Flatten Nested List Iterator

Medium
232

Implement Queue using Stacks

Easy
143

Reorder List

Medium
503

Next Greater Element II

Medium
2021

Remove All Occurrences of a Substring

Medium
937

Online Stock Span

Medium
726

Number of Atoms

Hard
150

Evaluate Reverse Polish Notation

Medium
1128

Remove All Adjacent Duplicates In String

Easy
173

Binary Search Tree Iterator

Medium
316

Remove Duplicate Letters

Medium
678

Valid Parenthesis String

Medium
591

Tag Validator

Hard
1197

Parsing A Boolean Expression

Hard
2871

Double a Number Represented as a Linked List

Medium
84

Largest Rectangle in Histogram

Hard
874

Backspace String Compare

Easy
581

Shortest Unsorted Continuous Subarray

Medium
321

Create Maximum Number

Hard
682

Baseball Game

Easy
1582

Design Browser History

Medium
1078

Remove Outermost Parentheses

Easy
1320

Remove All Adjacent Duplicates in String II

Medium
1050

Construct Binary Search Tree from Preorder Traversal

Medium
739

Daily Temperatures

Medium
1188

Brace Expansion II

Hard
931

Maximum Frequency Stack

Hard
3114

Beautiful Towers I

Medium
1371

Minimum Remove to Make Valid Parentheses

Medium
781

Basic Calculator IV

Hard
957

Minimum Add to Make Parentheses Valid

Medium
Loading more problems...

Stack LeetCode Problems List

Related LeetCode Topics

Stack LeetCode Problems - Interview Coder