Buckethead
Buckethead
全部文章
题解
归档
标签
去牛客网
登录
/
注册
Buckethead的博客
全部文章
/ 题解
(共1篇)
题解 | #用两个栈实现队列#
用两个栈实现队列 题目分析 两个栈,一个负责进 (in),一个负责出(out): class Solution: def __init__(self): self.__in, self.__out = [], [] 进栈逻辑 直接 append 即可 出栈逻辑 out 栈...
栈
链表
Python
2021-07-02
0
433