⚡ AlgoZen_
~/home/sorting_algorithms/merge_sort4 / 7

Merge Sort

Intermediate

Divide the array into halves, recursively sort each half, then merge the two sorted halves. Guaranteed O(n log n) in all cases.

time:O(n log n)
space:O(n)
⚡ +200_XP
step[1/27]
> Start
38
27
43
3
9
82
10
Starting array. Merge Sort will divide it into halves recursively, then merge sorted halves.

// tap NEXT STEP to walk through one step at a time