@icr0/

AbsoluteGracefulTaskscheduling

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
dp = {}
def fib(n):
  if n in dp:
    return dp[n]
  if n==0: return 0
  if n==1: return 1
  dp[n]= fib(n-1)+fib(n-2)
  return dp[n]
  

print(fib(42))