This question was asked in one of my past interview. If possible, can some one explain in details on how to calculate time complexity of such questions?
def rec(n ,i): for j in range(n-i): rec(n,i+1) rec(n,0)