In the previous tutorial, we learn how to find the rank of a word, if the letters are having no repetition. Now lets learn how to find the rank of word, if the letters in a word having repetition.
Before proceeding to the tutorial: we should know, how to calculate the total number of words can be formed using letters of a word is the letters are repeating in nature.
Like how many words can be formed using letters of INDIA. In letter “INDIA” there are 2 I and no other letter is repeating. So the number of words that can form using letter of INDIA will be 5 ! / 2 ! = 60.
Now we may proceed with new learning.
1. First take that word which we have to find the rank and the letters are repeating in nature. I will take “BOMBAY.”
2. Now arrange the letter of ” BOMBAY ” in alphabetical order. Now they are “ABBMOY”.
3. Pickup first letter from “ABBMOY” that’s “A”. Now compare “A” from “BOMBAY”. Does the letter “A” in the first we want? NO. Now how many words can be made if we extract “A” from “ABBMOY”.
Now proceed to the next.
4. Pickup second letter from “ABBMOY” that’s “B”. Now compare “B” from “BOMBAY”. Does the letter “B” in the first we want? Yes. Now fix the letter “B”.
[ B ]
Then go to once again on the first letter of “ABBMOY”. Does “A” we want? NO. Then write down how many words can be made with starting [ B ] A
5. Repeat the process until we get the letter which we want after B in the word “BOMBAY”.
[ B ] O. “O” we want. So fix this and get back to the starting.
6. Does we want now [ B O ] A? NO. So write down once again.
[ B O ] M. “M” we want now. So fix this too. And get back to the starting.
7. Does we want [ B O M ] A? No. So write down once again.
[ B O M] B. “B” we want. So fix this too. And get back to starting. We see “A” also we want now. So fix this too. And the last letter is “Y” We also want this. So we reach to the end. Now we can write.
8. Now add the entire sum which we earn.
That’s 60 + 24 +24 + 24 + 6 + 6 + 2 + 1 = 147. That’s the answer.
Now for Word “INDIA”
1. [ A D I I N ]
2. A = 4! / 2! = 12
2. D = 4! / 2! = 12
3. [ I ] A = 3! = 6
4. [ I ] D = 3! = 6
5. [ I ] I = 3! = 6
6. [ I N ] A = 2! =2
7. [ I N D ] I A = 1.
Now add all.
12 + 12 + 6 + 6 + 6 + 2 + 1 = 45.
So that’s the answer. Congratulation now you are able to find RANK of any word if its letters are repeating in nature.
If you are working with MySQL or MariaDB web server, sooner or later you will…
To edit the crontab entries you use crontab -e. The command will check for the…
Installation method for COMODO SSL Certificate If you have generated the CSR and purchased or…
In AWS S3, you might want to provide the access to selected users to selected…
It's possible you have earlier generated a ssh key without password/ passphrase. Later you found…
If you are working on Linux OS, finding files effectively always a tricky part. Like…
View Comments
this as well rocks...well done work...lot of complements to u
shortcut for with ripition please
The shortcut for repetition is there
for ex- GOOGLE
It has 6 letters with O repeating twice so all u need to do is
6!/2!
where 6! is for 6 letters in GOOGLE and 2! for 2 O repeating....
try for MISSISSIPPI...
(ANS-34650)
luvd it ...very helpful
EXCELLENT JOB, VERY CLEAR AND PRECISE
very nice work yaar
Thanks for liking it..
@don: I will definitely share it on blog. If I find one...
superduperlike
is the rank of the word SUCCESS is 301??
no its 420
7!/2!*3!
7! for 7 letters in the word
2! for 2 'c'
3! for 3 's'
rank of india =46
you have not accounted for
[ind]ai
pls post a solution to finding rank of RUSSIA in stepwise manner
c RUSSIA has 6 letters and S is repeating twice....
therefore the answer would be
6!/2!
6! for 6 letters and 2! for 2 S repeating.
the answer would be
6*5*4*3*2*1/2*1
=360