SHOWING TLE IN test cases ???
problem in my code ??
Tiling problem 2
hello @hg11110000
the recursive solution has exponential time complexity thats why u r getting tle .
so to improve the time complexity use dynamic programming
otherwise its correct ?? via recursion ??? i have done correct ??
DP is afterwards…recursion section if before…thats why
yeah ur code is correct and will work fine for small cases.
spend some more time on dp basics , learn about optimal substructure and overlapping subproblems then only the tutorial will make any sense.
if u have started learning dp then i would recommend to watch that fibonnaci problem. that covers almost everything