Now the question has been removed I want to ask how did you guys approaced it? I wrote a brute force version and tried to observe the patter but I couldn’t find pattern for k = 7 rest all my other cases passed.
1 Like
Here is my solution for k=7:–> Make 6 different matrices of size 49 X 49. Do Matrix Exponentiation of each of them separately, then multiply all of them.
1 Like
@serena_yvonne
If you don’t understand what is he saying then it’s completely normal
Refer this editorial. I am sure its almost same as what he is saying.
Reverse | Practice Problems
2 Likes
A wise man once said: shit keeps happening and you keep moving on