Place 2x1 size tiles on 2xN board , print number of ways to do it

test case 5 and 6 are passing but from 1 to 4 are failing what is the problem in the code??

hello @swetapro19
try this two things.

a) declare a global array of size 10^8+1 for dp array.
b) while performing addition using modulo property.
(a+b) %mod =(a%mod + b%mod)%mod;

also share the problem link with me.

https://online.codingblocks.com/app/player/37285/content/83730/5073/code-challenge

this is the problem link

i dont have access to this link.

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.