Qvault.io – Coding courses to launch your tech career Merge sort is a recursive sorting algorithm and, luckily for us, it’s quite a bit faster than bubble sort. Merge sort is a divide and conquer algorithm.

Merge sort actually has two functions involved, the recursive mergeSort function, and the merge function.

The point of the mergeSort function is to split the array into two roughly equal parts, call itself on those parts, then call merge() to fit those halves back together.

Related Articles