Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maricard18/42-push_swap

Algorithm sorting project
https://github.com/maricard18/42-push_swap

42 42born2code 42cursus 42porto 42portugal 42projects 42school algorithm pushswap pushswap-42 pushswap42 sorting-algorithms

Last synced: 25 days ago
JSON representation

Algorithm sorting project

Awesome Lists containing this project

README

        

# push swap

## Sort Data

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](https://github.com/maricard18/42-push_swap/blob/main/extras/en.subject.pdf)

## How To Use

To clone and run this project, just follow this instructions

```bash
# 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](https://github.com/maricard18)  · 
> Linkedin [Mario Henriques](https://www.linkedin.com/in/mario18)  · 
> [42 Porto](https://www.42porto.com/en)