Tag: a-stack
All the articles with the tag "a-stack".
-
LeetCode 94 Binary Tree Inorder Traversal
Solutions for LeetCode 94, easy, tags: tree, depth-first search, stack, binary tree.
-
LeetCode 1003 Check If Word Is Valid After Substitutions
Solutions for LeetCode 1003, medium, tags: string, stack.
-
LeetCode 1963 Minimum Number of Swaps to Make the String Balanced
An O(n)-time, O(1)-space solution to LeetCode 1963 using unmatched brackets.
-
LeetCode 1047 Remove All Adjacent Duplicates In String
Solution for LeetCode 1047, easy, tags: string, stack, simulation.
-
LeetCode 946 Validate Stack Sequences
Solution for LeetCode 946, medium, tags: array, stack, simulation.
-
LeetCode 503 Next Greater Element II
Solutions for LeetCode 503, medium, tags: array, stack, monotonic stack.