Large Fibonacci Number (N can be upto 10^15000000) -SPOJ

Oh again I forgot , that we can find Fibo number in Logn complexity by using Matrix expo :slight_smile: … I think i have to eat almonds , :rofl:

1 Like

If having trouble in writing solution refer to this link.

yeah u use matrix exponentiation right ?

Fast doubling method.

Both are different ?

Yup they are.