heyy please check my code
Wrong answer \\\\
Hi @Aparna,
u have not taken mod with 10^9+7 in ur code.
try submitting after taking mod into consideration
still getting wrong answers
ok wait i will check
@Aparna
here is d updated code
i have just changed dp[n]=n1+n2; to
dp[n]=((n1%1000000007)+(n2%1000000007))%1000000007;
Hope dis helps
yes it worked now, thankyou 