How to calculate number of permutations of a string which may contain repeated elements?
The length of the string is <=300.
The formula to calculate this is n!/(a!*b!*c!..)
Answer should be modulo of 10^9+7.
How to code this as n is very large??
How to calculate number of permutations of a string which may contain repeated elements?
The length of the string is <=300.
The formula to calculate this is n!/(a!*b!*c!..)
Answer should be modulo of 10^9+7.
How to code this as n is very large??