Tag: stack
- 132 Pattern
- Add Two Numbers II
- Apply Operations to Maximize Score
- Asteroid Collision
- Backspace String Compare
- Baseball Game
- Basic Calculator II
- Basic Calculator III
- Basic Calculator IV
- Basic Calculator
- Beautiful Towers I
- Beautiful Towers II
- Binary Search Tree Iterator II
- Binary Search Tree Iterator
- Binary Tree Inorder Traversal
- Binary Tree Postorder Traversal
- Binary Tree Preorder Traversal
- Brace Expansion II
- Build an Array With Stack Operations
- Build Binary Expression Tree From Infix Expression
- Buildings With an Ocean View
- Car Fleet II
- Car Fleet
- Check if a Parentheses String Can Be Valid
- Check If Word Is Valid After Substitutions
- Clear Digits
- Closest Binary Search Tree Value II
- Clumsy Factorial
- Construct Binary Search Tree from Preorder Traversal
- Construct Binary Tree from String
- Construct Smallest Number From DI String
- Convert Binary Search Tree to Sorted Doubly Linked List
- Count Collisions on a Road
- Count Non-Decreasing Subarrays After K Operations
- Count Submatrices With All Ones
- Crawler Log Folder
- Create Maximum Number
- Daily Temperatures
- Decode String
- Decoded String at Index
- Design a Stack With Increment Operation
- Design a Text Editor
- Design an Expression Tree With Evaluate Function
- Design Browser History
- Design Most Recently Used Queue
- Design Video Sharing Platform
- Dinner Plate Stacks
- Double a Number Represented as a Linked List
- Evaluate Reverse Polish Notation
- Exclusive Time of Functions
- Final Prices With a Special Discount in a Shop
- Find Building Where Alice and Bob Can Meet
- Find Maximum Non-decreasing Array Length
- Find Mirror Score of a String
- Find Permutation
- Find Sorted Submatrices With Maximum Element at Most K
- Find the Most Competitive Subsequence
- Find the Number of Subarrays Where Boundary Elements Are Maximum
- Finding the Number of Visible Mountains
- Flatten Binary Tree to Linked List
- Flatten Nested List Iterator
- Implement Queue using Stacks
- Implement Stack using Queues
- Increasing Order Search Tree
- Is Array a Preorder of Some Binary Tree
- Jump Game VIII
- Largest Rectangle in Histogram
- Lexicographically Minimum String After Removing Stars
- Longest Absolute File Path
- Longest Valid Parentheses
- Longest Well-Performing Interval
- Make The String Great
- Max Chunks To Make Sorted II
- Max Chunks To Make Sorted
- Max Stack
- Maximal Range That Each Element Is Maximum in It
- Maximal Rectangle
- Maximum and Minimum Sums of at Most Size K Subarrays
- Maximum Array Hopping Score I
- Maximum Array Hopping Score II
- Maximum Binary Tree
- Maximum Elegance of a K-Length Subsequence
- Maximum Frequency Score of a Subarray
- Maximum Frequency Stack
- Maximum Length of Semi-Decreasing Subarrays
- Maximum Nesting Depth of the Parentheses
- Maximum Nesting Depth of Two Valid Parentheses Strings
- Maximum Number of Books You Can Take
- Maximum of Minimum Values in All Subarrays
- Maximum Score From Removing Substrings
- Maximum Score of a Good Subarray
- Maximum Subarray Min-Product
- Maximum Sum Queries
- Maximum Twin Sum of a Linked List
- Maximum Width Ramp
- Min Stack
- Mini Parser
- Minimum Add to Make Parentheses Valid
- Minimum Additions to Make Valid String
- Minimum Cost to Change the Final Value of Expression
- Minimum Cost Tree From Leaf Values
- Minimum Deletions to Make Array Beautiful
- Minimum Deletions to Make String Balanced
- Minimum Insertions to Balance a Parentheses String
- Minimum Number of Increments on Subarrays to Form a Target Array
- Minimum Number of Swaps to Make the String Balanced
- Minimum Number of Visited Cells in a Grid
- Minimum Operations to Make Array Equal to Target
- Minimum Remove to Make Valid Parentheses
- Minimum String Length After Removing Substrings
- Minimum Time to Complete All Tasks
- N-ary Tree Postorder Traversal
- N-ary Tree Preorder Traversal
- Nested List Weight Sum II
- Next Greater Element I
- Next Greater Element II
- Next Greater Element IV
- Next Greater Node In Linked List
- Number of Atoms
- Number of People That Can Be Seen in a Grid
- Number of Students Unable to Eat Lunch
- Number of Valid Subarrays
- Number of Visible People in a Queue
- Odd Even Jump
- Online Stock Span
- Palindrome Linked List
- Parse Lisp Expression
- Parsing A Boolean Expression
- Print Immutable Linked List in Reverse
- Remove All Adjacent Duplicates in String II
- Remove All Adjacent Duplicates In String
- Remove All Occurrences of a Substring
- Remove Duplicate Letters
- Remove K Digits
- Remove Nodes From Linked List
- Remove Outermost Parentheses
- Removing Stars From a String
- Reorder List
- Replace Non-Coprime Numbers in Array
- Reverse Prefix of Word
- Reverse Substrings Between Each Pair of Parentheses
- Robot Collisions
- Score of Parentheses
- Shortest Subarray to be Removed to Make Array Sorted
- Shortest Unsorted Continuous Subarray
- Simplify Path
- Smallest K-Length Subsequence With Occurrences of a Letter
- Smallest Subsequence of Distinct Characters
- Stamping The Sequence
- Steps to Make Array Non-decreasing
- Subarray With Elements Greater Than Varying Threshold
- Sum of Subarray Minimums
- Sum of Subarray Ranges
- Sum of Total Strength of Wizards
- Tag Validator
- Ternary Expression Parser
- The Number of Weak Characters in the Game
- The Score of Students Solving Math Expression
- Trapping Rain Water
- Two Sum BSTs
- Using a Robot to Print the Lexicographically Smallest String
- Valid Parentheses
- Valid Parenthesis String
- Validate Stack Sequences
- Verify Preorder Sequence in Binary Search Tree
- Verify Preorder Serialization of a Binary Tree
- Zuma Game