Tiling problem recursion


why my test cases are not passing

@shampblocks
hello shubham,
because of recursion time complexity is high ,roughly 2^n and thats why no test cases are passing.

to optimise ur approach use dynamic programming

but i have not reached there in my coarse dynamming programming topic

@shampblocks
ok then for now leave this problem,try this after studying dp

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.