Tiling Problem Code not passing test cases

Not able to understand which cases, I am missing while coding the problem. Please help on this.

Hey, can u pls share ur code. U can use ide.codingblocks.com

Hi @Vishal_234,
This is d updated code.


try using memset inside while(t–) loop since u need to make dp[ ] -1 in every testcase.
and use %mod in totalcount function also just incase op1 & op2 might overflow.
Hope dis resolves ur doubt.

Hey @Vishal_234,
Hope ur doubt was resolved if yes pls mark it resolved.
else if u still have any doubt regarding dis , u can post it here.

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.