Why my code is giving tle in fast fibonacci using matrix exponentiation

@harry_potter123
Your code seems fine.
Try the last method logn fibonacci in this without matrix one. https://www.geeksforgeeks.org/program-for-nth-fibonacci-number/. Save the intermediate results in an unrodered_map like dp