Skip to content

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.

License

Notifications You must be signed in to change notification settings

bnidia/push_swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published