摘要: 代码随想录二刷栈与队列 栈模拟队列 具体思路如下: 程序如下: class MyQueue: def __init__(self): self.stack_in = [] self.stack_out = [] def push(self, x: int) -> None: self.stack_i 阅读全文
posted @ 2024-08-05 23:02 Bathwind_W 阅读(6) 评论(0) 推荐(0) 编辑