Sorting algorithms
What is push_swap?
push_swap is a fundamental algorithmic project at Hive Helsinki where the goal is to create a program to sort a stack of integers using two stacks and a minimal number of operations. This project provides an opportunity to practice and master algorithmic thinking and optimization techniques.
Key Objectives
- Sort a stack of integers: The primary goal is to rearrange the numbers in Stack A from smallest to largest.
- Minimize operations: Find the most efficient sequence of operations to achieve the sorting.
- Limited operations: Only a set of predefined operations can be used to manipulate the stacks.
- Optimization: The challenge lies in finding the least number of operations required to sort the stack.
Links