Skip to content

Commit e3f5528

Browse files
authored
Merge pull request #11 from iamAntimPal/Leetcode-75
Leetcode 75
2 parents 837ff50 + 7ca2a62 commit e3f5528

File tree

2 files changed

+542
-0
lines changed

2 files changed

+542
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Solution:
2+
def tribonacci(self, n: int) -> int:
3+
a, b, c = 0, 1, 1
4+
for _ in range(n):
5+
a, b, c = b, c, a + b + c
6+
return a

0 commit comments

Comments
 (0)