I am Getting TLE in my solution. How can I improve my solution?
I wish I knew. I’ve tried a similar digit DP, and also get TLE.