特牛网址导航

【小白刷题之路Day29】leetcode225. 用队列实现栈(C++ STL 队列的使用操作)-CSDN博客

网友收藏
文章浏览阅读302次。leetcode225. 用队列实现栈使用队列实现栈的下列操作: push(x) -- 元素 x 入栈 pop() -- 移除栈顶元素 top() -- 获取栈顶元素 empty() -- 返回栈是否为空注意: 你只能使用队列的基本操作-- 也就是 push to back, peek/pop from f..._c++ leetcode常用stl