Position : Software Engineer Intern
Time : 90 mins
No. of questions : 2
For 2, I was not able to pass the last 2 cases even with bottom up DP. I think it required the use of matrix exponentiation or other fancy math concepts for further optimization.