LeetCode中含有栈的题目:
| 序号 | 题目 | 难度 | 代码 |
|---|---|---|---|
| 20 | Valid Parentheses | Easy | python |
| 32 | Longest Valid Parentheses | Hard | python |
| 71 | Simplify Path | Medium | python |
| 155 | Min Stack | Easy | python |
| 225 | Implement Stack using Queues | Easy | python |
| 232 | Implement Queue using Stacks | Easy | python |
| 341 | Flatten Nested List Iterator | Medium | python |
| 385 | Mini Parser | Medium | python |
| 序号 | 题目 | 难度 | 代码 |
|---|---|---|---|
| 150 | Evaluate Reverse Polish Notation | Medium | python |
| 224 | Basic Calculator | Hard | python |
| 227 | Basic Calculator II | Medium | python |
| 241 | Different Ways to Add Parentheses | Medium | python |
| 282 | Expression Add Operators | Hard | python |
| 序号 | 题目 | 难度 | 代码 |
|---|---|---|---|
| 42 | Trapping Rain Water | Hard | python |
| 84 | Largest Rectangle in Histogram | Hard | python |
| 85 | Maximal Rectangle | Hard | python |
| 239 | Sliding Window Maximum | Hard | python |
| 316 | Remove Duplicate Letters | Medium | python |
| 321 | Create Maximum Number | Hard | python |
| 402 | Remove K Digits | Medium |
| 序号 | 题目 | 难度 | 代码 |
|---|---|---|---|
| 94 | Binary Tree Inorder Traversal | Easy | python |
| 103 | Binary Tree Zigzag Level Order Traversal | Medium | python |
| 144 | Binary Tree Preorder Traversal | Easy | python |
| 145 | Binary Tree Postorder Traversal | Easy | python |
| 173 | Binary Search Tree Iterator | Medium | python |
| 331 | Verify Preorder Serialization of a Binary Tree | Medium | python |
| 394 | Decode String | Medium | python |