Permutation(or the number of possible ways to rearrange a word) of a word | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 4

Permutation(or the number of possible ways to rearrange a word) of a word

we have to find number of ways by which we can arrange a word . example PUSHKAR possible words are USHKARP SUKARPH RAPUSKH . . . so on. and you have to find number of ways like this. BUT be careful for the word which contain a letter which contain letter repeated like in APPLE here P is repeated. so this will decrease the number of words arrangement. HINT :- take help of permutations and combination of maths.this will help a lot. Go for it.

14th Feb 2018, 3:55 PM
Pushkar Mourya
Pushkar Mourya - avatar
3 Antworten
+ 3
ohh I will try it...
15th Feb 2018, 10:35 AM
Saransh Maurya
Saransh Maurya - avatar
15th Feb 2018, 10:44 AM
tooselfish
tooselfish - avatar
+ 3
prints all permutations... bonus : prints all subsets and their permutations also..(no repeated element) bonus : 1 liner strictly.. (no module used) https://code.sololearn.com/cZ41Ge58z6zk/?ref=app
15th Feb 2018, 3:22 AM
sayan chandra
sayan chandra - avatar