Tilling problem

https://ide.codingblocks.com/s/69761
what is the problem in my code

@Dhruv-Miglani-2090236747707980 hey dhruv try this with Dp in bottom up approach else you will get tle

i dont know DP yet isnt there any other way out

@Dhruv-Miglani-2090236747707980 this question is design for dp skip this question for now

Hey Dhruv,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.