0

Please help me to create a Java program to print all the anagrams of a entered string??

plz keep the program simple.

4th Jan 2017, 12:59 PM
Akash Karnatak
Akash Karnatak - avatar
4 Réponses
0
Too long
4th Jan 2017, 3:16 PM
Alikhan Suleimen
Alikhan Suleimen - avatar
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
5th Jan 2017, 11:53 AM
Akash Middinti
0
thnx akash but is their any way out without recursion
5th Jan 2017, 12:22 PM
Akash Karnatak
Akash Karnatak - avatar
0
Yes, there is but it will be longer and not so simple like you asked!. https://code.sololearn.com/cH5e5zj8DKMF/#java
6th Jan 2017, 4:54 AM
Akash Middinti