+ 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.
3 Respuestas
+ 3
ohh I will try it...
+ 18
the same challenge 👍😉
https://www.sololearn.com/discuss/1058731/?ref=app
+ 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