+ 3
Can anyone explain me the logic how to count number of permutations of any word? [Please explain instead of giving a program]
I'm writing the logic in java.
8 Respuestas
+ 4
Snehil Pandey ,
are looking for a formula to calculate the number of permutations?
+ 4
Have you learnt combinations and permutations yet? For any word consists of n unrepeat letter, the permutation is nPn = n!. For an example of n=4, the first place has 4 choices which are able to select, afterwards, the second place has 3, as a result, the permutation becomes 4*3*2*1=4!. If there are repeated letter, you can think of they can self rotate, permutation becomes n!/product(r!) of all pairs of repeated letters.
+ 2
Yes, if there are repeat, self cancellation occur, it's combinations are also rep!, and becomes the divisor.
+ 1
Lothar No not any kind of formula but logic
+ 1
abpatrick catkilltsoi Actually factorial of length is valid only for words having non repeated letters
0
pretty wierd where are the answers? ?
by ChillPill sir