Place Tiles 1D DP

Sir, getting runtime error.

due to large constraints u get a run time
u can do it in O (1) space
similar to fibonnaci series

1 Like

Okay, done that way.

1 Like

sir my cod is not working for all test cases