pls, help in optimizing my code. it is showing TLE error.
here is the code:
Tiling problem 2
@Keshav99
Hello Keshav,
your code is correct.but you are getting tle because u are using recusion for this problem due which time complexity is really very high.
to optimise your code try using dynamic programming(if u havent studied dynamic programming then leave it for now,try again after learning dynamic programming )