Linked Questions

10 votes
2 answers
35k views

Possible Duplicate: Generating all permutations of a given string I have an array of arbitrary length in Java, and I would like to generate all possible permutations of them. The easy way to do ...
chimeracoder's user avatar
  • 21.8k
3 votes
3 answers
9k views

Possible Duplicate: Generating all permutations of a given string Given a length n=4, and a set of characters -> {'a', 'b'}, how to write some java codes to produce all the possible string ...
Evan_HZY's user avatar
  • 1,044
0 votes
2 answers
3k views

I have an array : String wordArr[]=new String[3]; [1 2 3] I want to form arrays with all combinations of the above. Say., 123 132 213 231 321 312 Can anyone give me an idea on how to find the ...
ashwinsakthi's user avatar
  • 1,956
0 votes
2 answers
3k views

I have a sentence, I love java coding I need to write a function that returns an array list of all possible permutations of words in the sentence, viz I java love coding I coding love java ............
Zeus's user avatar
  • 2,253
1 vote
3 answers
3k views

How to print lexicographic permutations of giving integer values. Example if i give 012 then output should be 012 021 102 120 201 210. What i tried for achieve this, package TEstingHere; public ...
MMMMS's user avatar
  • 2,191
0 votes
2 answers
2k views

I want to make a program that would un-jumble some words. I need to try all possible combinations of the words that can be formed, and then check if it is contained in a String variable, named dict. ...
dryairship's user avatar
  • 6,057
-2 votes
2 answers
1k views

this might be a stupid question with a simple answer but I can't for my life figure it out.. :p So if I have a variable n = 2 for example I want a list of all ways you can combinate the numbers that'...
Flash Records's user avatar
0 votes
1 answer
771 views

I would like to know how to create all permutation of a given string in a recursive way. Lets say that String a = "abcdefghijklmnopqrstxyz";. I would like to generate a string of length 5 (for ...
Efi 's user avatar
  • 7
1 vote
2 answers
383 views

Possible Duplicate: Generating all permutations of a given string I´m looking for a algorithm which returns me a List of all possible combines of x-letters. Example: 3 letters. (A,B,C) A B C A C ...
user959456's user avatar
0 votes
1 answer
244 views

I have difficult homework: The list contains alphabetically all strings, which can form the letters A-K. The start of the list looks like this: ABCDEFGHIJK, ABCDEFGHIKJ, ABCDEFGHJIK, ABCDEFGHJKI, ... ...
Mikko's user avatar
  • 55
0 votes
1 answer
285 views

I am trying to write a code in Java that would allow me to take a random String like "cat" and generate all the possible letter combinations, including shorter strings. The answers offered on the ...
tjorlando's user avatar
0 votes
0 answers
126 views

I have the following code which uses recursion to create a list of all permutations of an input string. I'm struggling to understand how it works. The idea of the algorithm is that the first char is ...
Simon Ryan's user avatar
0 votes
1 answer
79 views

I have the following code that will generate the permutations of an entered string, but is it possible for it to be changed so that there is no use of the for loop, just recursion? public static void ...
chocotella's user avatar
0 votes
0 answers
74 views

How to random order a 3 digit number on a list box? For example, When I add any 3 digit number on a list box to this number 647 = $23 The result is: 647 = $23 674 = $23 476 = $23 467 = $23 746 =...
Mercy's user avatar
  • 13
0 votes
0 answers
53 views

Is there a way to get all possible combinations of the letters of a given string? I don't want to ignore doubled letters. Also I want to get all possibilitys, even if not every letter is used. For ...
Karatek_HD's user avatar

15 30 50 per page
1
2 3 4 5
8