forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'feat(fibonacci): funcao feita' (#4) from feature/fibonacci into development
Reviewed-on: #4
This commit is contained in:
commit
5e591aaef4
@ -1,4 +1,4 @@
|
|||||||
export function fibonacci(value) {
|
export function fibonacci(value) {
|
||||||
// implementar logica aqui
|
// implementar logica aqui
|
||||||
|
return value <= 1 ? value : fibonacci(value - 1) + fibonacci(value - 2);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user