Tiling problem 2

https://ide.codingblocks.com/s/55745

sir, it is showing TLE in every test case, except 1 test case. how to rectify this error ?

Hey Yukti, you are solving this problem using recursion only and constraints are large that’s why you are getting TLE. Try to solve this problem using Dynamic Programming approach.