0
Please help me to create a Java program to print all the anagrams of a entered string??
plz keep the program simple.
4 Réponses
0
Too long
0
Use recursion. Try each of the letters in turn as the first letter and then find all the permutations of the remaining letters using a recursive call.
https://code.sololearn.com/c7w6vcdo50R8/#java
0
thnx akash but is their any way out without recursion
0
Yes, there is but it will be longer and not so simple like you asked!.
https://code.sololearn.com/cH5e5zj8DKMF/#java