140

来源: 2021-10-02 10:45:50 [旧帖] [给我悄悄话] 本文已被阅读:

Suppose there are no duplicate letters, number of sequences of a string of 7 letters is 7!

Now, there are 3 duplicates, therefore number of distinct sequences is 7! / 3!

Taking the first four elements yields 7! / 3! / 3! = 140