Merge pull request 'feat(fibonacci): funcao feita' (#4) from feature/fibonacci into development

Reviewed-on: #4
This commit is contained in:
Nicolly Vieira Santos Costa 2022-10-28 17:54:32 +00:00
commit 5e591aaef4

View File

@ -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);
} }