aspose file tools*
The moose likes Game Development and the fly likes scamble --> help me to solve it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Reply locked New topic
Author

scamble --> help me to solve it

Manisekar Chinnasami
Greenhorn

Joined: Apr 07, 2007
Posts: 24
hi friends,

here is the problem ...

i need to get all the combinations of a word ...

in detail ... if the input string is "man", then the output should be ...
(all itz combinations)
man
mna
amn
anm
nma
nam

three is little bit easy , but i need it for word with minimum five letters ....


Manisekar
Gavin Tranter
Ranch Hand

Joined: Jan 01, 2007
Posts: 333
how did you calculate the combinations of MAN, cant you just use the same method/algorithmn for 5 plus?

[ August 07, 2007: Message edited by: Gavin Tranter ]
[ August 07, 2007: Message edited by: Gavin Tranter ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Duplicate, please continue here.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: scamble --> help me to solve it
 
Similar Threads
scramble --> help me to solve it
scamble --> help me to solve it
code to find out all combinations
code to find out all combinations
Interesting non-programming problem