Skip to content

Commit 587662b

Browse files
Thiago Ribeiro RamosThiagoCodecov
authored andcommitted
Creating new code for reasons no one knows
1 parent 68946ef commit 587662b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

awesome/code_fib.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
def fib(n):
2+
if n <= 1:
3+
return 0
4+
return fib(n - 1) + fib(n - 2)

0 commit comments

Comments
 (0)