push_swap logo
Gabriela linkedin Lucas linkedin
Gabriela Sertori Lucas Krebs

Push_swap

This project involves sorting data on a stack, with a limited set of instructions, and the smallest number of moves. To make this happen, we chose bubble sort and radix sort.


Using push_swap_visualizer we can visually see how the sorting works! 😄

push_swap visualizer gif

Dependencies

Make
GCC
Git


How to compile and run

  • First thing you need to do is clone this repository:
git clone https://github.com/pair-programming-gabi-krebs/Push_swap.git
  • After that, you shall enter the Push_swap directory:
cd Push_swap
  • Compile the program and generate a binary called push_swap
make
  • After that you can choose your sequence of numbers or you can let this command choose some random numbers for you:
ARG=$(seq 1 5 | shuf); ./push_swap $ARG && echo $ARG

that's it 😄


🤝 Contributors

The collab:

Gabi sertori avatar
Gabi Sertori
Lucas krebs avatar
Lucas Krebs