This project will make you sort data on a stack, with a limited set of instructions, using
the lowest possible number of actions.
To succeed I had to manipulate various
types of algorithms and choose the most appropriate solution (out of many) for an
optimized data sorting. This project is in rank 2 of 42 common core and was graded with the score of 84/100.
-> Subject here
To clone and run this project, just follow this instructions
# Clone this repository
$ git clone https://github.com/maricard18/42-push_swap
# Go into the repository
$ cd push_swap
# Run make command
$ make
# Run the executable along with the number sequence of your choice
$ ./push_swap 5 2 1 4 7 8 3 0
GitHub @maricard18 · Linkedin Mario Henriques · 42 Porto