We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a78d4 commit 9fcf70eCopy full SHA for 9fcf70e
1 file changed
dynamic_programming/fibonacci.py
@@ -23,6 +23,9 @@ def get(self, index: int) -> list:
23
self.sequence.append(self.sequence[-1] + self.sequence[-2])
24
return self.sequence[:index]
25
26
+ def __repr__(self) -> str:
27
+ return f"Fibonacci(sequence={self.sequence})"
28
+
29
30
def main() -> None:
31
print(
0 commit comments