An overview of all my projects can be found here: ahokcool
This project was created as part of my studies at: 42 Lisboa
(animation created with a push_swap_visualizer)
The purpose of the push_swap project is to explore sorting algorithms. Therefore, the program reads the unique numbers delivered as arguments and stores them on a stack (a). The program uses a second stack (b) and only a few simple operations, which it outputs to the terminal, to sort the numbers in an ascending order on stack a.
- working with stacks
- bubble sort
- radix sort
- recursion
$ git clone --recurse-submodules https://github.com/ahokcool/push_swap.git # Clone
$ cd push_swap # Change directory
$ make # Compile
$ ./push_swap 1 4 2 3 7 6 5 8 9 # Run