andersonhsporto / ft-push-swap

Sort Data on a Stack, With a Limited Set of Instructions, Using the Lowest Possible Number of Actions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ft-push-swap

norminette

O objetivo deste projeto é ordenar números inteiros em uma stack utilizando um conjunto limitado de operações utilizando C.



Funções Permitidas

As funções permitidas no escopo deste projeto são:

• write
• read
• malloc
• free
• exit

Compile o programa utilizando make, o programa pode ser executado da seguinte forma:

./push_swap 9 8 7 6 5 4

 ARG=`ruby -e "puts (1..100).to_a.shuffle.join(' ')"`; ./push_swap $ARG

Visualização

Execução com 100 números aleatórios: *utilizando o visualizador em python push_swap_visualizer.

mandatory

About

Sort Data on a Stack, With a Limited Set of Instructions, Using the Lowest Possible Number of Actions


Languages

Language:C 93.7%Language:Makefile 6.3%