how to approach this problem?
Tilling problem
Mehak, you are supposed to solve this problem using the 1-d dynamic programming ( dp ) array, since it contains overlapping subproblems in itself… I would recommend you to first study about how to apply 1-d dp array and then try to implement the solution…