feat(fibonacci): implementa function
This commit is contained in:
parent
1db8a79f3b
commit
2efed9f049
@ -1,4 +1,6 @@
|
||||
export function fibonacci(value) {
|
||||
// implementar logica aqui
|
||||
|
||||
if (value === 0 || value === 1){
|
||||
return value;
|
||||
}
|
||||
return fibonacci(value -1) + fibonacci(value -2);
|
||||
}
|
Loading…
Reference in New Issue
Block a user