[Huawei OD test questions] HUAWEI (C&C++&java&python&JavaScript&go) 100% pass rate

[Huawei OD machine test real questions 2022&2023] real test catalog @click here @
[Huawei OD machine test real questions] signal transmission and reception & trial reading & @click here @
[Huawei OD machine real test questions] rent a car to ride the greenway & trial reading & @点here@

full array

topic description

Given a string S containing only uppercase English letters, you are required to give the number of all the different permutations of S rearranged.

For example: S is ABA, then there are three different permutations: ABA, AAB, and BAA.

enter description

Enter a string S whose length does not exceed 10, and we ensure that it is all uppercase.

output description

Output all the different permutations of S rearrangement (including itself).

example one

input<

Guess you like

Origin blog.csdn.net/weixin_45541762/article/details/132011178