0

How can I make a program to find all possible permutations of a String.

I know the logic behind it but even after reading its code I understood nothing.

20th Jul 2020, 3:27 AM
Abhishek Tripathi
2 Respuestas
+ 2
It is a simple recursion problem :- 1) treat each letter as the first letter and find all the possible permutations of remaining using recursion 2) base case would be an empty string
20th Jul 2020, 3:34 AM
Arsenic
Arsenic - avatar
+ 1
You can use recursion method
20th Jul 2020, 4:45 AM
Devesh
Devesh - avatar