Core idea
Quick Sort chooses a pivot element and rearranges the array so that smaller values go to the left and larger values go to the right.
After partitioning, it repeats the same process recursively for both halves, which makes the algorithm dramatically faster than Bubble Sort on average.
It is one of the classic divide-and-conquer algorithms: elegant, fast in practice, and useful for understanding recursion and partitioning.