Question 71
HardWhat is the recursion depth of quick sort in the worst case and how can it be bounded to O(log n)?
- A.
O(log n) always
- B.
O(n); recurse on the smaller part first and loop on the larger
- C.
O(n²)
- D.
O(1)
Sign up free to see the answer and a step-by-step explanation.