Introduction to Sorting Algorithms
Sorting algorithms are methods used to arrange data in a specific order (usually ascending or descending).
Let's look into classical problem statement:
Given an array of elements, rearrange them so that (or in descending order).
A valid solution must:
- Reorder elements (not change their values)