✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the following merge sort algorithm:
def merge_sort(array):
if len(array) <= 1:
return array
middle = len(array) //
2 left = merge_sort(array[:middle])
right = merge_sort(array[middle:])
return merge(left, right) What is its time complexity in the worst case?Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!