KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I found this question on the web. Given a stack S, write a C program to sort the stack (in the ascending order). We are not allowed to make any assumptions about how the stack is implemented. The only functions to be used are: Push Pop Top IsEmpty IsFull I think we can build heap and sort it. What is optimal solution to this?
Tags (comma-separated)
Save Edits
Cancel