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.
- Host: GitHub
- URL: https://github.com/mdbentaleb/push_swap_42
- Owner: mdbentaleb
- Created: 2025-02-08T19:42:05.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-02-08T19:51:46.000Z (11 months ago)
- Last Synced: 2025-02-08T20:30:25.025Z (11 months ago)
- Topics: 1337, 42projects, c, datastructures, optimization-algorithms, push-swap, sorting-algorithms
- Language: C
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```