Sort data in a stack using a limited set of instructions. Aim to achieve the lowest possible number of actions.
The goal is to explore various algorithms and their complexities. This exercise requires rigor and a proficiency in C.
Grade: 109/100 (includes bonus)
- Uses a variation on Radix sort for larger stacks (also uses Bubble sort as a helper function)
- Uses a custom algorithm (somewhat mix of Insertion sort and Merge sort)
- Includes a self made checker for bonus
Execute push swap
./push_swap 0 2 1Execute checker
cd checker
make
../push_swap 0 2 1 | ./checker 0 2 1