Skip to content

Commit 1f61f51

Browse files
authored
Fixed indexing
1 parent 0dc81a8 commit 1f61f51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Maths/Fibonacci.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const FibonacciRecursive = (number) => {
2929
case 1:
3030
list.push(1)
3131
return FibonacciRecursive(number)
32-
case number:
32+
case number + 1:
3333
return list
3434
default:
3535
const sgn = number < 0

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy