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 2796b65 commit aeb081bCopy full SHA for aeb081b
pydatastructs/multi_threaded_algorithms/fibonacci.py
@@ -53,4 +53,6 @@ def calculate(self):
53
@property
54
def sequence(self):
55
"""Returns the Fibonacci sequence up to the nth number."""
56
+ if self.result[0] is None:
57
+ self.calculate()
58
return self.result[:self.n + 1]
0 commit comments