WHY SHOWING TLE AS I USED MATRIX EXPONENTIATION SO CAN U CHECK PLEASE
@rupeshjha909
Use method 6 from this
Matrix method is not passing because time constraints are very strict
SIR PLEASE SEE THIS AND CHECK MY CODE WHY IT IS SHOWING RUNTIME ERROR https://ide.codingblocks.com/s/237114
@rupeshjha909
You were supposed to use a map not an array to store calculated results. Please see the approach in the link once again.
Hey @rupeshjha909
It seems like there is an issue with this problem
Test case 2 and 3 have some issues with them
I have informed the team and we will soon fix the error
Till then please skip this question and work on other problems
1 Like