Skip to content

WaPoco/push_swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Description

In this project I used the algo "Turcsort" to sort the stack a. It picks the cheapest number in terms of operations and moves them to stacks b until there are only 3 numbers in stack a. Then it will the 3 numbers from stack a and move the numbers from stack b to a. Eventually it will move the min of stack a to the top of stack a. The algo has a runtime of o(n^2)...

Instructions

To compile the project, run the following command in the terminal:

To run the program, use the following command:

Replace [numbers] with the list of integers you want to sort. For example:

Rescouces

...

About

In this project, you will sort data in a stack using a limited set of instructions, aiming to achieve the lowest possible number of actions. To succeed, you will need to work with various algorithms and choose the most appropriate one for optimized data sorting.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors