static void Main(string[] args) { //SingleArrThreeStks3_1.driver(); //StkWithMin3_2.driver(); //SetOfStacks3_3.driver(); //TowerOfHanoi3_4.driver(); //QueueUsingStacks3_5.driver(); SortStack3_6.driver(); Console.ReadLine(); }
public static void driver() { int[] arr = { 3, 6, 1, 8, 2, 9, 4, 5}; SortStack3_6 stack = new SortStack3_6(); foreach (int i in arr) stack.push(i); stack.Sort(); while (!stack.IsEmpty()) Console.Write("{0} ", stack.pop()); }
public static void driver() { int[] arr = { 3, 6, 1, 8, 2, 9, 4, 5 }; SortStack3_6 stack = new SortStack3_6(); foreach (int i in arr) { stack.push(i); } stack.Sort(); while (!stack.IsEmpty()) { Console.Write("{0} ", stack.pop()); } }