2024年5月3日
摘要: leetcode 232.用栈实现队列 题目 232.用栈实现队列 请你仅使用两个栈实现先入先出队列。队列应当支持一般队列支持的所有操作(push、pop、peek、empty): 实现 MyQueue 类: void push(int x) 将元素 x 推到队列的末尾 int pop() 从队列的 阅读全文
posted @ 2024-05-03 14:47 小鹿BAMBI 阅读(1) 评论(0) 推荐(0) 编辑