+ 7

Coding Challenge :: Combinations

Enter a word and print all its combinations Example : - Input - CAT Output - CAT CTA ACT ATC TCA TAC Enjoy coding !!! 😎😎😎 Important Note : Solutions in Java would be highly appreciated.

14th Sep 2017, 11:59 AM
Danish Javed
Danish Javed - avatar
7 Respuestas
14th Sep 2017, 9:12 PM
ysraelcon
ysraelcon - avatar
+ 6
Here is one in Python (I assume you meant permutations rather than combinations :) ) https://code.sololearn.com/ckFMwZ7ytWsG/#py
16th Sep 2017, 4:02 AM
David Ashton
David Ashton - avatar
19th Sep 2017, 5:56 AM
LukArToDo
LukArToDo - avatar
18th Sep 2017, 4:58 AM
noobcøder
noobcøder - avatar
+ 1
Your question is incorrect, you want to find the combination but in your example you have found permutation. There is only one combination, in this case.
12th May 2018, 5:29 AM
Mr.Curious
Mr.Curious - avatar
0
I'll try you challenge, when I get time. ☺
14th Sep 2017, 12:09 PM
Haris
Haris - avatar
- 1
check this very cool code(almost what's asked): https://code.sololearn.com/cCY1Wt9adzPq/?ref=app
14th Sep 2017, 12:08 PM
Haris
Haris - avatar