What is the worst case time complexity of Tim sort?

Answer: b
Explanation: Worst case time complexity of Tim sort is O(n log n). It is because the worst complexity of merge sort is O(n log n) and insertion sort is only applied for small arrays.
 

Tìm kiếm

Back
Top