amenesca / PushSwap_amenesca

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MyPushSwapSortProject

This is a sort programm made in C, with operations made in stacks.

it's objective is to count how much operations is needed to sort a sequence
depending on wich sort algorithm the code is using, I made using radix sort.

Usage:
compile using make.

> ./push_swap 4 29 18 5 1
ra
pb
pb
ra
pa
ra
pa
ra

The output is the operations realized.
you can count with ./push_swap 4 29 18 5 1 84 | wc -l
that should be 8

About


Languages

Language:C 97.3%Language:Makefile 2.7%