示例#1
0
 public void C3Q6()
 {
     Stack<int> s = new Stack<int>();
     s.Push(4);
     s.Push(2);
     s.Push(3);
     s.Push(8);
     s.Push(5);
 }
示例#2
0
 public void C3Q2()
 {
     var stack = new Stack();
     stack.push(1);
     stack.push(2);
     stack.push(3);
     stack.push(4);
     var result = stack.min().data;
     Assert.AreEqual(result, 1);
 }
示例#3
0
 public Tower(int i)
 {
     disks = new Stack<int>();
     Index = i;
 }