def abc(N):
if N <= 0:
return 1
return abc(N-1) + abc(N-2)
I'm trying to learn Python right now but I'm having a bit of trouble here. I'd like to determine this function by Big-θ. How would I approach this? Thanks!
def abc(N):
if N <= 0:
return 1
return abc(N-1) + abc(N-2)
I'm trying to learn Python right now but I'm having a bit of trouble here. I'd like to determine this function by Big-θ. How would I approach this? Thanks!