forked from M3-Academy/challenge-algorithms-v2.0
Merge branch 'release/v4.00'
This commit is contained in:
commit
87ac596661
@ -1,4 +1,7 @@
|
|||||||
export function fibonacci(value) {
|
export function fibonacci(value) {
|
||||||
// implementar logica aqui
|
// implementar logica aqui
|
||||||
|
if (value <= 1) {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
return fibonacci(value -1 ) + fibonacci(value -2)
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user