摘要: https://leetcode-cn.com/problems/implement-stack-using-queues/ 使用队列实现栈的下列操作: push(x) -- 元素 x 入栈pop() -- 移除栈顶元素top() -- 获取栈顶元素empty() -- 返回栈是否为空 注意: 你只 阅读全文
posted @ 2019-11-04 21:54 xyy999 阅读(134) 评论(0) 推荐(0)