Skip to content

SLargo18/push_swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

♻️ push_swap

📌 Description

push_swap is an algorithmic project that sorts a stack of integers using a limited set of operations on two stacks. The goal is to sort the data with the smallest possible number of instructions.

This project challenges your skills in algorithm design, data structure manipulation, and optimization under strict constraints, using only the C programming language.


🛠️ Skills Developed

  • Custom sorting algorithms
  • Linked list and stack implementation
  • Input parsing and validation
  • Optimization of operations
  • Memory management in C
  • Complexity analysis and performance tuning

🧠 Allowed Operations

  • sa, sb, ss – swap top elements
  • pa, pb – push from one stack to another
  • ra, rb, rr – rotate
  • rra, rrb, rrr – reverse rotate

⚙️ Compilation

make

About

A sorting algorithm project using limited stack operations and custom optimization in C.

Topics

Resources

Stars

Watchers

Forks