摘要: 232. 用栈实现队列 详解 class MyQueue { public: stack<int> st_in; stack<int> st_out; MyQueue() { } void push(int x) { st_in.push(x); } int pop() { if(st_out.em 阅读全文
posted @ 2023-08-18 16:38 zqh2023 阅读(360) 评论(0) 推荐(0)