摘要: 描述 使用队列实现栈的下列操作: push(x) 元素 x 入栈 pop() 移除栈顶元素 top() 获取栈顶元素 empty() 返回栈是否为空 注意: 你只能使用队列的基本操作 也就是 push to back, peek/pop from front, size, 和 is empty 这些 阅读全文
posted @ 2020-04-01 11:42 hunter-w 阅读(219) 评论(0) 推荐(0) 编辑