Question DSA-CX-0065
HardWhat is the time complexity of this code?
def f(n):
if n <= 1:
return
f(n // 2)
for i in range(n * n):
work()
- A.
O(n log n)
- B.
O(n³)
- C.
Sign up free to see the answer and a step-by-step explanation.