摘要:
Link: https://leetcode.com/problems/min-stack/ Constraint: Idea We could use two stacks, one responsible for regular stack operations; the other one r
阅读全文
posted @ 2021-08-07 23:49
blackraven25
阅读(26)
推荐(0)
编辑
摘要:
https://leetcode.com/problems/implement-stack-using-queues/ ##Code
阅读全文
posted @ 2021-08-07 23:22
blackraven25
阅读(8)
推荐(0)
编辑
摘要:
Link: https://leetcode.com/problems/implement-queue-using-stacks/ Constaints 1 <= x <= 9 At most 100 calls will be made to push, pop, peek, and empty.
阅读全文
posted @ 2021-08-07 00:08
blackraven25
阅读(26)
推荐(0)
编辑