Skip to content

marshtupa/push_swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

push_swap

This project will make you sort data on a stack, with a limited set of instructions, using the lowest possible number of actions.

push

Installation

This project includes my libft. For normal work, I advise you to use:

git clone --recurse-submodules git@github.com:lmaron-g/push_swap.git; cd push_swap; make

Run

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

Simple usage:

./push_swap [STACK] - OUTPUT: operation to sort the stack

./checker [-v (visualize)] [STACK] - INPUT: operation to sort the stack. OUTPUT: operation to sort the stack

Also you can test push_swap with sh tester.sh

About

Because Swap_push isn’t as natural

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published