Skip to content

Commit c90481b

Browse files
committed
improve fibonacci
1 parent f13588d commit c90481b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎Sprint-2/improve_with_caches/fibonacci/fibonacci.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
cache = {
2+
0: 0,
3+
1: 1
4+
}
5+
16
def fibonacci(n):
27
if n <= 1:
38
return n

0 commit comments

Comments
 (0)