#堆栈和队列
该标签下的全部文章。
In Order Travesal with Stack
Given a binary tree, implement the In-Order Traversal using a stack
Longest Valid Parentheses
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed)
Sort Stack
How to sort a stack in ascending order (i.e. pop in ascending order) with another stack?
Stack of Plates
Imagine a (literal) stack of plates. If the stack gets too high, it might topple.