Given a stack S, need to sort the stack using only Push, Pop, Top, IsEmpty, IsFull.
Push
Pop
Top
IsEmpty
IsFull
Looking for most sim
techInterview Discussion - Sorting on Stack
More pseudo than anything, but there is code examples and possible solution.