In a program used to find words from random scrabble letters how do you loop through each of the possible combinations of letters? ie: abc acb bac bca cab cba
Asked
Active
Viewed 652 times
1 Answers
1
What you're trying to do here is permute the set of characters contained within the string.
There's a question here about it:
Find string permutation including the single character using C# or F#

Community
- 1
- 1

Jon Egerton
- 40,401
- 11
- 97
- 129
-
Yes the example solution is in C#, but as its linq its pretty much the same anyway. – Jon Egerton Feb 24 '12 at 16:48
-
Thanks! I never knew that permutation was a method – netchicken Feb 25 '12 at 00:05