+ 20
👉[CHALLANGE OF THE DAY]👈
create a progarm in any language which will take a string of alphabets,char and numbers as input. Aim: 1>Output the number of ways we can rearrange those char, number and alphabets so they form different word 2> output all words NOTE: if a word is already used in a word or string it can not be used again in that same string or word. for example: input :x@ output: no. of possible words:2 @x x@ Good Luck ⤵⤵⤵⤵
14 Antworten
+ 12
With Java Stream :
https://code.sololearn.com/cjKE58WKOhCI/?ref=app
+ 37
I think its fact (y)/fact (x)...
+ 33
areee yeh kya SL pe toh 11th ki PnC chal rahi ha
//maine bhi ek PnC ka question challenge ke rup me dala ha
//btw congrats 4 new badge @hacker
+ 29
what if the two characters are same in the given string.
Show me your code .. .
+ 21
here is mine in java
https://code.sololearn.com/c3xrI5dnh94u/?ref=app
+ 9
@HackeR....
sorry i didn't written code.....
but as per u r thought ....
my algorithm was...
0)define a function factorial
1)using while loop i will find how many characters. are repeated
let it be x
2)y=len(string)
find factorial(x) and factorial(y)
3)as per formulae of permutations the answer is
factorial(y)/factorial(x)
+ 7
@HackeR oh sorry
+ 7
I made this a long time ago :
https://code.sololearn.com/ciduWR430zi3/?ref=app
+ 5
from itertools import permutations as p
print(["".join(i) for i in set(p(input())])
#### py####
+ 5
Here's my try
https://code.sololearn.com/c1wcSyDAM3Th/?ref=app
+ 3
Here is the thread to help you:
https://www.sololearn.com/discuss/777743/?ref=app
+ 2
https://code. sololearn. com
CFM72WHOHMI/? ref=app.