摘要:
1 class MyQueue 2 { 3 private Stack s1; 4 private Stack s2; 5 6 public MyQueue(int size) 7 { 8 this.s1 = new Stack(size); 9 this.s2 = new Stack(size); 10... 阅读全文
posted @ 2019-04-11 17:08
Huayra
阅读(153)
评论(0)
推荐(0)
摘要:
1 class MyQueue 2 { 3 private Stack s1; 4 private Stack s2; 5 6 public MyQueue(int size) 7 { 8 this.s1 = new Stack(size); 9 this.s2 = new Stack(size); 10... 阅读全文
posted @ 2019-04-11 16:56
Huayra
阅读(326)
评论(0)
推荐(0)
摘要:
1 class MyStack 2 { 3 private Queue q1; 4 private Queue q2; 5 6 public MyStack(int size) 7 { 8 this.q1 = new Queue(size); 9 this.q2 = new Queue(... 阅读全文
posted @ 2019-04-11 16:12
Huayra
阅读(318)
评论(0)
推荐(0)
摘要:
1 class MyStack 2 { 3 private Queue q1; 4 private Queue q2; 5 6 public MyStack(int size) 7 { 8 this.q1 = new Queue(size); 9 this.q2 = new Queue(... 阅读全文
posted @ 2019-04-11 16:03
Huayra
阅读(540)
评论(0)
推荐(0)
摘要:
1 class Queue 2 { 3 private int front; 4 private int rear; 5 private int[] a; 6 7 public Queue(int size) 8 { 9 this.front = this.rear = 0; 10 this.... 阅读全文
posted @ 2019-04-11 13:58
Huayra
阅读(118)
评论(0)
推荐(0)
摘要:
1 class Stack 2 { 3 private int top; 4 private int[] a; 5 6 public Stack(int size) 7 { 8 this.top = -1; 9 this.a = new int[size]; 10 } 11 12 ... 阅读全文
posted @ 2019-04-11 13:51
Huayra
阅读(298)
评论(0)
推荐(0)

浙公网安备 33010602011771号