摘要: [Algo] 栈和队列 1. 栈实现队列 // 1. 栈实现队列 class MyQueue { private: stack<int> in; stack<int> out; public: void enQueue(int val) { in.push(val); inToOut(); } vo 阅读全文
posted @ 2024-12-05 17:54 yaoguyuan 阅读(3) 评论(0) 推荐(0) 编辑