Skip to content

yvann-ba/Push_Swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Push_Swap

πŸ“œ Description

"Push_Swap" is a challenging algorithmic project from 42 School. The goal is to sort a stack of integers using a limited set of operations, aiming to minimize the number of moves required. This project enhances your understanding of sorting algorithms, data structures, and algorithm optimization.

⭐ My 42 score for this project:

image

πŸ“„ Official 42 School Subject:

Push_Swap Subject

🌟 Features

  • Efficiently sort a stack of integers
  • Limited and defined operations
  • Optimization of moves
  • Comprehensive algorithm analysis

βš™οΈ Installation

To clone and compile this project, follow these steps:

git clone https://github.com/yvann-ba/Push_Swap.git
cd Push_Swap
make

πŸš€ Usage

To sort a stack of integers, execute the following command:

./push_swap "3 2 1"

Replace "3 2 1" with any sequence of integers. The program will output the steps to sort the stack

About

Efficient stack sorting algorithm in C. Optimize the number of moves using limited operations

Topics

Resources

License

Stars

Watchers

Forks