fibonacci atualizado
This commit is contained in:
parent
e5eab36b76
commit
74f51d2317
@ -1,4 +1,5 @@
|
||||
export function fibonacci(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
}
|
||||
if (value < 2) return value;
|
||||
return fibonacci(value - 1) + fibonacci(value - 2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user