sorting
- Quicksort
Quicksort explained: how partitioning around a pivot sorts in place, why average-case performance beats merge sort, and when worst-case behavior strikes. - Merge Sort
A stable O(n log n) divide-and-conquer sorting algorithm that recursively splits an array and merges sorted halves.