+ 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 ⤵⤵⤵⤵

9th Nov 2017, 11:06 PM
Mr. Bot
Mr. Bot - avatar
14 Antworten
13th Nov 2017, 10:04 PM
LukArToDo
LukArToDo - avatar
+ 37
I think its fact (y)/fact (x)...
13th Nov 2017, 9:46 AM
Mr. Bot
Mr. Bot - avatar
+ 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
13th Nov 2017, 3:22 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 29
what if the two characters are same in the given string. Show me your code .. .
13th Nov 2017, 5:58 AM
Mr. Bot
Mr. Bot - avatar
9th Nov 2017, 11:34 PM
Mr. Bot
Mr. Bot - avatar
+ 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)
13th Nov 2017, 6:04 AM
SAKSHI
SAKSHI - avatar
19th Nov 2017, 11:05 AM
David Akhihiero
David Akhihiero - avatar
+ 7
@HackeR oh sorry
13th Nov 2017, 11:46 AM
SAKSHI
SAKSHI - avatar
+ 7
15th Nov 2017, 12:46 AM
Leigh E. O.
Leigh E. O. - avatar
+ 5
from itertools import permutations as p print(["".join(i) for i in set(p(input())]) #### py####
10th Nov 2017, 1:51 AM
sayan chandra
sayan chandra - avatar
15th Nov 2017, 9:09 AM
Kartik
Kartik - avatar
+ 3
20th Nov 2017, 8:20 AM
#RahulVerma
#RahulVerma - avatar
+ 2
https://code. sololearn. com CFM72WHOHMI/? ref=app.
14th Nov 2017, 4:36 PM
💸ACE💸
💸ACE💸 - avatar