2021年8月7日
摘要: 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 阅读(31) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/implement-stack-using-queues/ ##Code 阅读全文
posted @ 2021-08-07 23:22 blackraven25 阅读(12) 评论(0) 推荐(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 阅读(34) 评论(0) 推荐(0)