2 comments (2 comments)0 reactions (0 reactions)0 assignees (0 assignees)C++3,724 forks (3,724 forks)batch import
Hacktoberfestadd codenew algorithm
Repository metrics
- Stars
- 13,462 stars (13,462 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
In code/data_structures/stack we could also create an efficient program for sorting a stack.
Contributor guide
- Research direction
- Implement a function to sort a stack using an auxiliary stack. Study the algorithm: pop elements from the original stack and insert them in sorted order into the auxiliary stack. Finally, push back from auxiliary to original. Alternatively, use recursion. Write code in your chosen language, add comments, and include example usage.
- Tech stack
- None
- Domain
- data
- Issue type
- Feature
- Prerequisites
- Stack data structureBasic sorting algorithms