bnidia / push_swap

This project involves sorting data on a stack, with a limited set of instructions, and the smallest number of moves. To make this happen, you will have to manipulate various sorting algorithms and choose the most appropriate solution(s) for optimized data sorting.

Home Page:https://projects.intra.42.fr/projects/42cursus-push_swap

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

push_swap (Complexity 60 hours)

bnidia's 42 push_swap Score

This project involves sorting data on a stack, with a limited set of instructions, and the smallest number of moves. To make this happen, you will have to manipulate various sorting algorithms and choose the most appropriate solution(s) for optimized data sorting.

push_swap_demo

Этот проект включает в себя сортировку данных в стеке с ограниченным набором инструкций и наименьшим количеством ходов. Чтобы это произошло, вам придется манипулировать различными алгоритмами сортировки и выбирать наиболее подходящее решение (решения) для оптимизированной сортировки данных.

How to build and run

Download to your computer, go to the directory push_swap, compile with make and then run push_swap with unique numbers.

git clone https://github.com/bnidia/push_swap.git
cd push_swap
make
./push_swap 5 10 3 0 -12
>ra
>ra
>pb
>ra
>ra
>pb
>sa
>rra
>pa
>pa
>ra

Instructions you can see on this picture

picture

About

This project involves sorting data on a stack, with a limited set of instructions, and the smallest number of moves. To make this happen, you will have to manipulate various sorting algorithms and choose the most appropriate solution(s) for optimized data sorting.

https://projects.intra.42.fr/projects/42cursus-push_swap

License:The Unlicense


Languages

Language:C 70.2%Language:HTML 20.2%Language:Shell 6.4%Language:Makefile 3.1%