Skip to content

Commit aeb081b

Browse files
committed
Resolve Issue #475
1 parent 2796b65 commit aeb081b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydatastructs/multi_threaded_algorithms/fibonacci.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,6 @@ def calculate(self):
5353
@property
5454
def sequence(self):
5555
"""Returns the Fibonacci sequence up to the nth number."""
56+
if self.result[0] is None:
57+
self.calculate()
5658
return self.result[:self.n + 1]

0 commit comments

Comments
 (0)