You are viewing a single comment's thread. Return to all comments →
Why does the question request modulo(10^9 + 7) ?
"print the number of ways of choosing non-empty subsequences, modulo 10^9 + 7"
unless the number exceeds (10^9+7) the answer will be the same.
I'm not seeing why this sentence exists in the problem description. What am I missing?
Seems like cookies are disabled on this browser, please enable them to open this website
Shashank and the Palindromic Strings
You are viewing a single comment's thread. Return to all comments →
Why does the question request modulo(10^9 + 7) ?
"print the number of ways of choosing non-empty subsequences, modulo 10^9 + 7"
unless the number exceeds (10^9+7) the answer will be the same.
I'm not seeing why this sentence exists in the problem description. What am I missing?