Stack (48)

These problems are related to stack.

Steps to make array non decreasing - January 5, 2023

Finding the number of visible mountains - January 3, 2023

Minimum remove to make valid parentheses - December 28, 2022

Backspace string compare - December 20, 2022

Maximum number of books you can take - December 19, 2022

Ternary expression parser - December 17, 2022

Maximum nesting depth of two valid parentheses strings - December 12, 2022

Removing stars from a string - December 11, 2022

Print immutable linked list in reverse - November 29, 2022

Check if word is valid after substitutions - November 26, 2022

Next greater node in linked list - November 26, 2022

Sum of subarray minimums - November 25, 2022

Add two numbers II - November 25, 2022

Final prices with a special discount in a shop - November 23, 2022

132 pattern - November 22, 2022

odd-even-jump - November 22, 2022

Maximum frequency stack - November 13, 2022

Remove all adjacent duplicates in string II - November 10, 2022

Remove all adjacent duplicates in string - November 10, 2022

Score of parentheses - November 10, 2022

Maximum nesting depth of the parentheses - November 10, 2022

Online stock span - November 9, 2022

Make the string great - November 8, 2022

Next greater element II - November 5, 2022

Reverse vowels of a string - November 4, 2022

Baseball game - October 6, 2022

Asteroid collision - October 3, 2022

Minimum insertions to balance a parentheses string - September 16, 2022

Minimum number of swaps to make the string balanced - September 9, 2022

Design a stack with increment operation - September 6, 2022

Remove duplicate letters - September 5, 2022

Longest absolute file path - September 5, 2022

Basic calculator III - September 5, 2022

Basic calculator - September 5, 2022

Basic calculator II - September 5, 2022

Verify preorder serialization of a binary tree - September 4, 2022

Decode string - September 3, 2022

Simplify path - August 29, 2022

Validate stack sequences - August 28, 2022

Remove k digits - August 27, 2022

Next greater element I - August 14, 2022

Largest rectangle in histogram - July 30, 2022

Car fleet - July 30, 2022

Daily temperatures - July 30, 2022

Generate parentheses - July 29, 2022

Min stack - July 19, 2022

Evaluate reverse polish notation - July 19, 2022

Valid parentheses - July 16, 2022