Problem library
Stack
All problems that are about stack.
48
/ 48 problems
| Problem | Category | Time | Solved |
|---|---|---|---|
|
Steps to make array non decreasing
stack
dynamic-programming
|
O(n) | Jan 5, 2023 | |
|
Finding the number of visible mountains
stack
|
O(nlog(n)) | Jan 3, 2023 | |
|
Minimum remove to make valid parentheses
stack
|
O(n) | Dec 28, 2022 | |
|
Backspace string compare
stack
|
O(n+m) | Dec 20, 2022 | |
|
Maximum number of books you can take
stack
|
O(n) | Dec 19, 2022 | |
|
Ternary expression parser
stack
|
O(n) | Dec 17, 2022 | |
|
Maximum nesting depth of two valid parentheses strings
stack
|
O(n) | Dec 12, 2022 | |
|
Removing stars from a string
stack
|
O(n) | Dec 11, 2022 | |
|
Print immutable linked list in reverse
linked-list
stack
|
O(n) | Nov 29, 2022 | |
|
Check if word is valid after substitutions
stack
|
O(n) | Nov 26, 2022 | |
|
Next greater node in linked list
linked-list
stack
|
O(n) | Nov 26, 2022 | |
|
Add two numbers II
linked-list
stack
|
O(n) | Nov 25, 2022 | |
|
Sum of subarray minimums
stack
|
O(n) | Nov 25, 2022 | |
|
Final prices with a special discount in a shop
stack
|
O(n) | Nov 23, 2022 | |
|
odd-even-jump
dynamic-programming
stack
|
O(nlog(n)) | Nov 22, 2022 | |
|
132 pattern
stack
|
O(n) | Nov 22, 2022 | |
|
Maximum frequency stack
stack
design
|
— | Nov 13, 2022 | |
|
Maximum nesting depth of the parentheses
stack
|
O(n) | Nov 10, 2022 | |
|
Remove all adjacent duplicates in string II
stack
|
O(n) | Nov 10, 2022 | |
|
Remove all adjacent duplicates in string
stack
|
O(n) | Nov 10, 2022 | |
|
Score of parentheses
stack
|
O(n) | Nov 10, 2022 | |
|
Online stock span
stack
|
O(n) | Nov 9, 2022 | |
|
Make the string great
stack
|
O(n) | Nov 8, 2022 | |
|
Next greater element II
stack
|
O(n) | Nov 5, 2022 | |
|
Reverse vowels of a string
stack
|
O(n) | Nov 4, 2022 | |
|
Baseball game
stack
|
O(n) | Oct 6, 2022 | |
|
Asteroid collision
stack
|
O(n) | Oct 3, 2022 | |
|
Minimum insertions to balance a parentheses string
stack
greedy
|
O(n) | Sep 16, 2022 | |
|
Minimum number of swaps to make the string balanced
stack
|
O(n) | Sep 9, 2022 | |
|
Design a stack with increment operation
design
stack
|
O(1) | Sep 6, 2022 | |
|
Basic calculator II
stack
|
O(n) | Sep 5, 2022 | |
|
Basic calculator III
stack
|
O(n) | Sep 5, 2022 | |
|
Basic calculator
stack
|
O(n) | Sep 5, 2022 | |
|
Longest absolute file path
stack
|
O(n) | Sep 5, 2022 | |
|
Remove duplicate letters
stack
|
O(n) | Sep 5, 2022 | |
|
Verify preorder serialization of a binary tree
stack
|
O(n) | Sep 4, 2022 | |
|
Decode string
stack
|
O(n) | Sep 3, 2022 | |
|
Simplify path
stack
|
O(n) | Aug 29, 2022 | |
|
Validate stack sequences
stack
|
O(n) | Aug 28, 2022 | |
|
Remove k digits
stack
|
O(n) | Aug 27, 2022 | |
|
Next greater element I
stack
|
O(n*m) | Aug 14, 2022 | |
|
Car fleet
stack
|
O(n) | Jul 30, 2022 | |
|
Daily temperatures
stack
|
O(n) | Jul 30, 2022 | |
|
Largest rectangle in histogram
stack
|
O(n) | Jul 30, 2022 | |
|
Generate parentheses
stack
|
O(2^n) | Jul 29, 2022 | |
|
Evaluate reverse polish notation
stack
|
O(n) | Jul 19, 2022 | |
|
Min stack
stack
design
|
O(n+n) | Jul 19, 2022 | |
|
Valid parentheses
stack
|
O(n) | Jul 16, 2022 |
No matching problems
Try clearing one of the filters.