An algorithm to sort data using two stacks, with a limited set of movements. The goal was to get the fewest number of moves. With this project, I improved my logic programming, learned more about data structure, and starts learning about Complexity.
git clone https://git@github.com:izacabral/sorting_stacks.git
-
Run
make
to compile program -
Run the program passing the numbers to sort
./stack_sorting 3 1 8 7 5