Question DSA-REC-0071
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.
Sign up free to see the answer and a step-by-step explanation.