All test cases are passing except last on which is showing TLE.
Here is the link
All test cases are passing except last on which is showing TLE.
Here is the link
@omkarkhodwe
In power function you are passing matrix by value
Pass it by reference
Also use fast IO
All Test Cases Passed.Thank You