Name: Anonymous 2022-01-28 18:57
Write a program that computes the nth Fibonacci number in less then linear time.
function fibo(n) {
var A=(1+Math.sqrt(5))/2,
B=(1-Math.sqrt(5))/2,
fibo = (Math.pow(A,n) - Math.pow(B,n)) / Math.sqrt(5);
return Math.ceil(fibo);
}
tranniesNikita is unstable mentally and Cudder is all talk and no action.
furrySoatok doesn't poast here unprompted.
1,1,2,3,5, 8, 13,21,34,55, 89, 144, 233,
1,2,3,4,5, 6, 7, 8, 9,10, 11, 12, 13,