Skip to content

Commit 2f4dda5

Browse files
Merge pull request #361 from audrius59/fibonacci-js
Added one line fibonacci solution javascript
2 parents 3debdf2 + 248e751 commit 2f4dda5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function fibo(num) {
2+
return num < 2 ? num : fibo(num - 1) + fibo(num - 2);
3+
}

0 commit comments

Comments
 (0)