Write a program to get the number of words possible using a alphabets array.
Assume that there are no duplicate alphabets.
Input(char Array) |
Output |
{ 'r', 'a', 'i', 'n', 'b', 'o', 'w' } |
5040 |
{ 'f', 'r', 'u', 'i', 't', 's' } |
720 |
{ 'n', 'e', 'w', 's' } |
24 |
{ 'a', 'e', 'i', 'o', 'u' } |
120 |
{ 's', 'u', 'n', 'f', 'l', 'o', 'w', 'e', 'r' } |
362880 |
{}(EMPTY ARRAY) |
1 |