I have been trying to solve this Hacker Earth problem and it is reduced to finding the Fibonacci numbers. However, I am getting wrong answers for big values.
Here is my code. Can someone tell me what is wrong ?
Why is matrix exponentiation for Fibonacci numbers not working on big values for this Hacker Earth problem ?
I have been trying to solve this Hacker Earth problem and it is reduced to finding the Fibonacci numbers. However, I am getting wrong answers for big values.
Here is my code. Can someone tell me what is wrong ?