How to sort a number of elements in stack1 ordering with the smallest is on the top of the stack, and you can use temporary stack 2??
What is the idia and time complexity of your algorithm?
Can any one push me to idea?:eek:
I can do it with 3 temporary stack like a Tower of Hanoi :!: