It is possible to create a fast "give n-th fibonacci number" function as described here. Is there a way to write a isFibonacci(int i)
function that perform in O(1)?
I could precalculate values. But the calculation last O(n) and I cant do it for big numbers.