I hereby claim:
- I am amiiy on github.
- I am amiy (https://keybase.io/amiy) on keybase.
- I have a public key ASDU2KbBqcNjL25KXjWJppDx7LECWAXwg6_Rn08oyo0PLwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#fibonacci series with dynamic programing Approach ! | |
#better way ... | |
def fib(n): | |
l = [1,1] | |
if n == 0 : | |
return 1 | |
elif n == 1 : | |
return 1 | |
elif n == 2 : |
# recursive fibonacci series | |
# to mush overhead & duplicated calculation's | |
# let it gooo ! | |
def fib(x): | |
if x == 1 or x == 2 : | |
return 1 | |
else: | |
return fib(x-1) + fib(x - 2 ) |