Can anyone help me with the logic of printing all permutations of a string | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Can anyone help me with the logic of printing all permutations of a string

7th Oct 2019, 7:10 PM
Creates Inc.
5 Respostas
+ 5
Do code and share here. If you are facing any problem then we can help.
7th Oct 2019, 9:01 PM
AĶ¢J
AĶ¢J - avatar
+ 3
Have you ever tried first?
7th Oct 2019, 7:54 PM
AĶ¢J
AĶ¢J - avatar
+ 3
Try making all permutations of the string first(using recursion) and then remove the duplicate permutations in case there is repetition of same character(s) in string
8th Oct 2019, 3:55 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 2
I was trying out some logic but did not code it...
7th Oct 2019, 7:56 PM
Creates Inc.
0
Okay I'll will try. Thankyou anyway.
8th Oct 2019, 7:56 AM
Creates Inc.