/push_swap

42 | Stack sorting in C

Primary LanguageC

Project's status Project's primary language Project's focus

push_swap

push_swap is a 42 project consisting in the making of some sort of a stack sorting algorithm in C.

Full subject is available here

Use this command to visualize the sorting, generating random numbers with ruby

python3 pyviz.py `ruby -e "puts (1..100).to_a.shuffle.join(' ')"`

Use this command to check the validity of the program, generating random numbers with ruby

ARG=`ruby -e "puts (1..5).to_a.shuffle.join(' ')"`; ./push_swap $ARG | wc -l && ./push_swap $ARG | ./checker_Mac $ARG