...

/

Challenge 5: Sort Values in a Stack

Challenge 5: Sort Values in a Stack

In this lesson, you will learn how to sort elements using a stack.

Problem statement

You have to implement myStack sortStack(myStack stack, int size) function, which will take a stack and sort all its elements in ascending ...