Merge Sort
Merge sort is a sorting technique that is based on the divide and conquer method. It is one of the most respected algorithms, with a worst-case time complexity of O(n log n). Merge sort divides the array into equal parts before combining them in a sorted fashion. Algorithm Merge sort keeps on dividing the list …