+ 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
17 Answers
+ 25
https://code.sololearn.com/cJQ8BkGJsFH1/?ref=app
+ 10
Thanks for the challenge.
Here's my try (definitely not inline 😔)
https://code.sololearn.com/cRskD59pM2vy/?ref=app
+ 6
An ordinary attempt
https://code.sololearn.com/c1nxfe29jMwM/?ref=app
+ 4
can you explain for
abc(case 1)
and
abcd(case 2)
+ 2
fullbpermutations only no more time
https://code.sololearn.com/c70I4ZR5jiS9/?ref=app
+ 2
+ 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
+ 2
thanx @gaurav @LukArToDo
+ 1
abc-------->>
a
b
c
ab
ba
bc
cb
ac
ca
abc
acb
bca
bac
cab
cba
+ 1
Haskell can do it in one line no problem.
main = print $ (subsequences >=> permutations) "abc"
https://tio.run/##LcgxDsMgDADAnVdYqEOz5AewpGPzCCe1VCtgU2zeT5beeF@0i0qZk2vT7vBCx/XN5uEfm4p3Leuugp8QKrJAgtZZHB7wtHEY/QbJSQY5ZWjU63B0VrEFIh5nnPMG
+ 1
heres my own
one liner no module
https://code.sololearn.com/cZ41Ge58z6zk/?ref=app
+ 1
can any budy give me a code of this in java?
0
give me a code
schindlabua##@@
☺😊