摘要: 题目链接:https://leetcode-cn.com/problems/implement-queue-using-stacks 题目描述: 1.用栈实现队列。 请你仅使用两个栈实现先入先出队列。队列应当支持一般队列的支持的所有操作(push、pop、peek、empty): 实现 MyQueu 阅读全文
posted @ 2021-01-28 18:24 张宵 阅读(70) 评论(0) 推荐(0)