Merge sort

Merge sort is a comparison-based sorting algorithm that recursively divides a sequence, sorts the smaller parts, and merges them into order. Its worst-case running time is O(n log n).

Connect