Skip to content

SegaVintovar/push_push

Repository files navigation

This project has been created as part of the 42 curriculum by vsudak

Push Swap

Description

This is the program that sorts a given set of integers in ascending order using two stacks and a limited number of operations. Stacks can be rotated both ways and you can pass only the top element of the stack.

Instructions

  • make
  • make clean
  • ./push_swap $args
    • $args are in the integer limit, separated by SPACE

Resources

https://www.geeksforgeeks.org/c/setting-bit-in-c/
https://www.geeksforgeeks.org/c/extract-bits-in-c/
https://www.geeksforgeeks.org/dsa/binary-representation-of-a-given-number/
https://medium.com/nerd-for-tech/push-swap-tutorial-fa746e6aba1e
https://github.com/krameraad/push_swap/blob/main/sort_radix.c
https://www.w3schools.com/c/ref_stdlib_exit.php
https://www.geeksforgeeks.org/dsa/stack-data-structure/

About

my push_swap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors