队列
Wonz
技术很菜,但一直在学习。
微信公众号:Wonz
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode | 面试题09. 用两个栈实现队列【剑指Offer】【Python】
LeetCode 面试题09. 用两个栈实现队列【剑指Offer】【Easy】【Python】【栈】【队列】原创 2020-03-27 20:39:31 · 800 阅读 · 0 评论 -
LeetCode | 面试题59 - II. 队列的最大值【Python】
LeetCode 面试题59 - II. 队列的最大值【Medium】【Python】【队列】问题力扣请定义一个队列并实现函数 max_value 得到队列里的最大值,要求函数max_value、push_back 和 pop_front 的均摊时间复杂度都是O(1)。若队列为空,pop_front 和 max_value 需要返回 -1示例 1:输入: ["MaxQueue",...原创 2020-03-08 13:08:49 · 532 阅读 · 0 评论 -
LeetCode | 0225. Implement Stack using Queues用队列实现栈【Python】
LeetCode 0225. Implement Stack using Queues用队列实现栈【Easy】【Python】【栈】【队列】ProblemLeetCodeImplement the following operations of a stack using queues.push(x) – Push element x onto stack.pop() – Remo...原创 2020-03-01 22:55:56 · 465 阅读 · 0 评论
分享