Implement Queue using Stacks
摘要:
1 class Queue { 2 stack input,output; 3 public: 4 // Push element x to the back of queue. 5 void push(int x) { 6 input.push(x); 7... 阅读全文
posted @ 2015-10-23 10:42 RenewDo 阅读(108) 评论(0) 推荐(0)
posted @ 2015-10-23 10:42 RenewDo 阅读(108) 评论(0) 推荐(0)
posted @ 2015-10-23 09:38 RenewDo 阅读(144) 评论(0) 推荐(0)