Oh again I forgot , that we can find Fibo number in Logn complexity by using Matrix expo β¦ I think i have to eat almonds ,
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.