Counting Subsequences

Why wrong answer???

Try to submit this:

Ok i will try but what was problem in my code

Actually in large numbers during subtraction you should add MOD so that answer is not negative.

1 Like