+ 10

## PERMUTATIVE--SUBSETS##

input---> ab output---> a b a,b b,a =========================== explaination--> bring out all subsets.. but permutation of all subsets are also a diff subset as a,b and b,a ((NO DUPLICATES ALLOWED)) =========================== ### u can print null as its a subset or u may exclude that### @@ ANY LANGUAGE @@ =========================== for python users-- 1) try not using any module (if used no problem) 2) try using bitwise operators 3) try not using bitwise operators 4) TRY A 1 - LINER

26th Oct 2017, 5:02 PM
sayan chandra
sayan chandra - avatar
14 ответов
+ 25
https://code.sololearn.com/cJQ8BkGJsFH1/?ref=app
2nd Nov 2017, 5:12 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 10
Thanks for the challenge. Here's my try (definitely not inline 😔) https://code.sololearn.com/cRskD59pM2vy/?ref=app
3rd Nov 2017, 12:52 PM
LukArToDo
LukArToDo - avatar
26th Oct 2017, 7:34 PM
Kartik
Kartik - avatar
+ 4
can you explain for abc(case 1) and abcd(case 2)
26th Oct 2017, 6:09 PM
Pranit Gandhi
Pranit Gandhi - avatar
+ 2
fullbpermutations only no more time https://code.sololearn.com/c70I4ZR5jiS9/?ref=app
26th Oct 2017, 10:17 PM
VcC
VcC - avatar
27th Oct 2017, 10:33 AM
VcC
VcC - avatar
+ 2
I wrote 2 answer. At one of them, I tried using only String class (no Array, of cource no permutation method). It was a bother... https://code.sololearn.com/cQRipdUdg9K8/?ref=app
28th Oct 2017, 12:09 PM
Hiroki Masuda
Hiroki Masuda - avatar
+ 2
thanx @gaurav @LukArToDo
3rd Nov 2017, 2:06 PM
Pranit Gandhi
Pranit Gandhi - avatar
+ 1
abc-------->> a b c ab ba bc cb ac ca abc acb bca bac cab cba
26th Oct 2017, 6:10 PM
sayan chandra
sayan chandra - avatar
+ 1
Haskell can do it in one line no problem. main = print $ (subsequences >=> permutations) "abc" https://tio.run/##LcgxDsMgDADAnVdYqEOz5AewpGPzCCe1VCtgU2zeT5beeF@0i0qZk2vT7vBCx/XN5uEfm4p3Leuugp8QKrJAgtZZHB7wtHEY/QbJSQY5ZWjU63B0VrEFIh5nnPMG
26th Oct 2017, 11:02 PM
Schindlabua
Schindlabua - avatar
+ 1
heres my own one liner no module https://code.sololearn.com/cZ41Ge58z6zk/?ref=app
28th Oct 2017, 5:37 PM
sayan chandra
sayan chandra - avatar
+ 1
can any budy give me a code of this in java?
1st Nov 2017, 1:47 AM
Pranit Gandhi
Pranit Gandhi - avatar
0
give me a code schindlabua##@@ ☺😊
27th Oct 2017, 2:59 AM
sayan chandra
sayan chandra - avatar