Monday, May 27, 2013

Stack and Queue Algorithm Questions


  1. Use single array to implement 3 stack.
  2. Implement stack class. Write push , pop and peek function. Write a function MIN which return minimum value in O(1).
  3. Implement queue using 2 stacks.