pls point out mistakes in my code, I am using dp based approach to solve this
Tiling problem 2
hello @Keshav99,
a) use long long
b) in problem it is asked to report ans%1000000007 as answer so use modulo properties
while performing arithmetic operations.
it is showing run error now for all test cases
declare ur dp array inside while loop .
something like int dp[n+1]={0};
check ur updated code here-> https://ide.codingblocks.com/s/229566
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.