Merge Sort

A divide-and-conquer sorting technique that splits the array into halves, recursively sorts each half, and then merges the sorted halves.

  • Time complexity is Linearithmic, i.e. O(n log(n))
  • Space complexity is Linear, i.e. O(n)