Skip to content

Instantly share code, notes, and snippets.

Amir Imani amiiy

Block or report user

Report or block amiiy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

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:

@amiiy
amiiy / fibonacci.py
Created Jan 26, 2017
fibonacci in dynamic programing way
View fibonacci.py
#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 :
@amiiy
amiiy / fibonacci.py
Created Jan 26, 2017
fibonacci series with recursive approach
View fibonacci.py
# 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 )
You can’t perform that action at this time.