Getting TLE and check is the code correct or not?
my code=https://ide.codingblocks.com/s/281350
Tilling problem
@divesh2000 using recursion with given test cases and size constraints will give you TLE for sure.
try to use a DP approach here.
1 Like
@sdevwrat
Hi I was also getting the same error but by dp it was accepted!!
So, why the question is under the section “Recursion and Backtracking” shouldn’t it be in “DP” section
this maybe a mistake they will update it shortly.
1 Like
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.