会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ggaoda
博客园
首页
新随笔
联系
订阅
管理
2022年4月25日
leetcode-232.用栈实现队列
摘要: 栈和队列 题目详情 请你仅使用两个栈实现先入先出队列。队列应当支持一般队列支持的所有操作(push、pop、peek、empty): 实现 MyQueue 类: void push(int x) 将元素 x 推到队列的末尾 int pop() 从队列的开头移除并返回元素 int peek() 返回队
阅读全文
posted @ 2022-04-25 10:53 ggaoda
阅读(1)
评论(0)
推荐(0)
编辑
公告