Skip to content

Matesant/42Push_swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Push swap

Imagem 1 Imagem 2

Sort your stacks!

This repository contains the implementation of the first sorting algorithm in the 42 curriculum.

About

The project involves developing an algorithm to sort two stacks, a and b, with the minimum number of movements possible.

Requirements

The functions are written in C language and need the gcc compiler.

Instructions

1. Compiling the archives

To compile the project, go to its path and run:

For mandatory :

$ make

2. Cleaning all binary (.o) and executable files (.a)

To delete all files generated with make, go to the path and run:

$ make fclean

Bonus

The bonus involves developing a checker to validate the output of the push swap program. This tool verifies that the sorting algorithm produces the correct results by ensuring that the final order of elements in the stacks meets the expected criteria.

To compile the bonus:

For bonus :

$ make bonus

Testing

This project have been tested with (https://github.com/gemartin99/Push-Swap-Tester).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published