Skip to content

ahokcool/push_swap

Repository files navigation


ahokcool
An overview of all my projects can be found here: ahokcool

42
This project was created as part of my studies at: 42 Lisboa


Logo
(animation created with a push_swap_visualizer)

push_swap

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.


💡 Lessons learned

Installation

$ 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

🔝 back to top 🔝

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published