forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'Feat(Desafio_2.4): Cria resposta desafio 2.4' (#4) from Feature/Desafio_2.4 into develop
Reviewed-on: #4
This commit is contained in:
commit
56e918b956
@ -1,4 +1,7 @@
|
||||
export function fibonacci(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
}
|
||||
if(value <= 1){
|
||||
return value
|
||||
}
|
||||
return fibonacci(value - 1) + fibonacci(value - 2)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user