232. 用栈实现队列
摘要:
class MyQueue { stack<int> inStack, outStack; void in2out() { while(inStack.size()) { outStack.push(inStack.top()); inStack.pop(); } } public: /** Ini 阅读全文
posted @ 2021-03-05 09:46 hannah_id 阅读(88) 评论(0) 推荐(0)
posted @ 2021-03-05 09:46 hannah_id 阅读(88) 评论(0) 推荐(0)