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

https://github.com/mdbentaleb/push_swap_42

Push_swap is a 42 Network project where the goal is to sort a stack of integers using a limited set of operations. It reinforces algorithm design, optimization, and efficient data manipulation.
https://github.com/mdbentaleb/push_swap_42

1337 42projects c datastructures optimization-algorithms push-swap sorting-algorithms

Last synced: about 2 months ago
JSON representation

Push_swap is a 42 Network project where the goal is to sort a stack of integers using a limited set of operations. It reinforces algorithm design, optimization, and efficient data manipulation.

Awesome Lists containing this project

README

          

# Push_swap - 42 Network Project

Push_swap is a project from the 42 Network focused on sorting a stack of integers using a limited set of operations. The challenge is to optimize the algorithm to minimize the number of operations, reinforcing knowledge of sorting algorithms, data structures, and performance optimization.

🚀 **Features**
- Sorts a stack of integers using basic operations like `sa`, `sb`, `pa`, `pb`, `ra`, `rb`, `rra`, and `rrb`.
- Focuses on algorithm optimization to minimize operation count.
- Reinforces understanding of stack data structures and efficient sorting techniques.

🛠️ **Getting Started**

**Prerequisites**
To get started, ensure you have the following installed:
- A C compiler like `gcc` or `clang`
- `make` for building the project
- A UNIX-like operating system (Linux/macOS/WSL)

### 1. Clone the Repository
```bash
git clone https://github.com/your-username/Push_swap.git
cd Push_swap
```

### 2. Compile the Project
After cloning the repository, run the following command to compile the project:
```bash
make
```

### 3. Clean Up
To remove the compiled files:
```bash
make clean
```