My code is showing TLE for 2nd test case
plz check the code and correct it.
problem : https://online.codingblocks.com/app/player/39658/content/77394/5228/code-challenge\
code : https://ide.codingblocks.com/s/210133
plz reply ASAP
My code is showing TLE for 2nd test case
plz check the code and correct it.
problem : https://online.codingblocks.com/app/player/39658/content/77394/5228/code-challenge\
code : https://ide.codingblocks.com/s/210133
plz reply ASAP
Try to solve it using bottom up approach.