The is running for some tetscase but showing TLE for some testcase
Time limit exceeded
@shudhanshu20092001_af6f20d24c617008 To avoid TLE use the approach given in the vidoe below :
(Note : you will require DP concepts for Avoiding TLE in this Problem.)
https://youtu.be/L1x3an2pl3U
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.