Is it the median of 3 to solve the worst time complexity in Quick sort?
also,
Is there a worst-case time complexity when using the median of 3 method?
Is it the median of 3 to solve the worst time complexity in Quick sort?
also,
Is there a worst-case time complexity when using the median of 3 method?
I think the worst time complexity of quick sort by making median as pivot all the time is O(nlogn). you can find median in O(n) time.