Counting Subsequence with Same Character Frequency
Dynamic Programming Problem
Given a string word, count the number of subsequences where all characters appear the same number of times. The result should be taken modulo 10^9 + 7.
Input
- ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
