GithubHelp home page GithubHelp logo

reomelo / 42porto-push_swap Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.79 MB

A program that sorts a stack of integers in the least steps possible, based on a limited set of instructions

Makefile 4.25% C 95.75%
42pushswap sorting-algorithms stacks

42porto-push_swap's Introduction

Screenshot from 2023-11-01 15-46-17

Description of the project:

Push_swap is a program that sorts a stack of integers with the minimum instructions possible and an auxiliary stack. Instructions are defined within the subject of the project; They're the only way allowed to manipulate the data in the stacks.

checker is a utility program that, taking the same arguments as push_swap and its outputted instructions, checks if the stack ends up sorted, thus verifying if push_swap is correctly sorting the stack.

Installing and running the project:

1- Clone this repository and enter it:

git clone https://github.com/reomelo/42Porto-push_swap.git && cd 42Porto-push_swap

2- Run make and execute with a list of integers (read subject):

make && ./push_swap <nbr> <nbr> <nbr> ...

Makefile Available Targets:

make or make all - compiles the project
make clean - wipes all object files
make fclean - deletes ./push_swap and all object files
make re - fclean + all


At 42School, almost every project must be written in accordance to the Norm. As a result, parts of the code are not as clean, efficient or straight forward as they could be.

42porto-push_swap's People

Contributors

reomelo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.