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 aeb081b commit 53bfec7Copy full SHA for 53bfec7
pydatastructs/multi_threaded_algorithms/fibonacci.py
@@ -13,7 +13,7 @@ class Fibonacci:
13
14
def __init__(self, n, backend='python'):
15
if n<0:
16
- raise ValueError("n cannot be negative")
+ raise ValueError("n cannot be negative") # Checking invalid input
17
self.n = n
18
self.backend = backend
19
self.result = [None] * (n + 1) # To store Fibonacci numbers
0 commit comments