{EPITECH} The goal of this project is to make a program to sort a number list, by using the fewest possible operations.
You can use two list for this project, l_a and l_b.
The operations that you can use are following :
sa: swap the first two elements ofl_a(nothing will happen if there aren’t enough elements).sb: swap the first two elements ofl_b(nothing will happen if there aren’t enough elements).sc:saandsbat the same time.pa: take the first element froml_band move it to the first position ofl_a(nothing will happen ifl_bis empty).pb: take the first element froml_aand move it to the first position ofl_b(nothing will happen ifl_ais empty).ra: rotatel_atoward the beginning, the first element will become the last.rb: rotatel_btoward the beginning, the first element will become the last.rr:raandrbat the same time.rra: rotatel_atoward the end, the last element will become the first.rrb: rotatel_btoward the end, the last element will become the first.rrr:rraandrrbat the same time.
Compilation
$> Make
Execution
$> ./pushswap 2 15 3 7 35 19 .....
