kema-dev / push_swap

42 | Stack sorting in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

42 | Stack sorting in C


Languages

Language:C 82.5%Language:Makefile 13.1%Language:Python 4.4%