Posts by Davi Henrique • 19 points
1 post
-
1
votes1
answer39
viewsQ: Degree of complexity
def fRecursivo(n): if(n == 0 ): return 1 if (n%2 ==1): return (n+3*fRecursivo(n-1)) if(n%2 == 0 and n> 0): return (n+n+3*n*fRecursivo(n-1)) How complex is the code for even numbers ? In the case…