Stacks Easy
# | Title | Solution | Time | Space | Video |
---|---|---|---|---|---|
155 | Min Stack | Python | O(1) | O(n) | |
225 | Implement Stack using Queues | Python | push/pop: O(1) top:O(n) | O(n) | |
20 | Valid Parentheses | Python | O(n) | O(n) |
# | Title | Solution | Time | Space | Video |
---|---|---|---|---|---|
155 | Min Stack | Python | O(1) | O(n) | |
225 | Implement Stack using Queues | Python | push/pop: O(1) top:O(n) | O(n) | |
20 | Valid Parentheses | Python | O(n) | O(n) |