用兩個隊列實現棧

class MyStack { public: /** Initialize your data structure here. */ MyStack() { } queue<int> q1, q2; /** Push element x onto stack. */ void push(int x) { //那個部位空, 插入哪一
相關文章
相關標籤/搜索