We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffe21c8 commit 6b59726Copy full SHA for 6b59726
Fibonacci Sequence/fibonacci.js
@@ -0,0 +1,6 @@
1
+// Recursive implementation
2
+export default function fibonacci(length) {
3
+ if (length <= 1) return 1;
4
+
5
+ return fibonacci(length - 1) + fibonacci(length - 2);
6
+}
0 commit comments