Skip to content

Hakaraou/push_swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PushSwap

PushSwap is a sorting algorithm project designed to sort a list of integers using a limited set of operations. The goal is to implement an efficient algorithm that minimizes the number of operations required to sort the list.

Description

PushSwap sorts a list of integers with the following operations:

  • Push: Moves the top element from one stack to the other.
  • Swap: Swaps the top two elements of a stack.
  • Rotate: Shifts all elements in a stack up by one position.
  • Reverse Rotate: Shifts all elements in a stack down by one position.

The program should produce an optimized solution, using the least number of operations possible to sort the list.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published