Tilling problem


why is it failing 4 testcases?

You are supposed to solve this problem using dynamic programming approach only… as it contains overlapping subproblems… so I would recommend you to first go through the dynamic programming approach and then try to implement the solution…