Sort a queue using only a few available moves. You cannot cut the queue.
Gets different integer numbers from the standard input, here's your queue (queue a). You only have one auxiliary queue available (queue b)../push_swap
uses queue a and queue b in order to sort automatically queue a
Available moves are listed in the PDF
A ./checker
program is available in order to check if the moves sort the queue or not. It reads the list of integers as parameters, and the list of moves on the standard input. A verbose (option -v
before the integer list) mode is available if you want to display the queues.
compile : make ; make clean
push_swap : ./push_swap [INT LIST]
checker : ./checker [OPTIONAL [-v]] [INT LIST]