We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bccb40 commit 566ddd4Copy full SHA for 566ddd4
src/me/ramswaroop/arrays/StringPermutations.java
@@ -6,9 +6,18 @@
6
* @author: ramswaroop
7
* @date: 9/24/15
8
* @time: 2:27 PM
9
+ * @see: http://www.ericleschinski.com/c/java_permutations_recursion/
10
+ * @see: http://introcs.cs.princeton.edu/java/23recursion/Permutations.java.html
11
*/
12
public class StringPermutations {
13
14
+ /**
15
+ * Generates and prints all possible permutations (in order)
16
+ * of string {@param s}.
17
+ *
18
+ * @param prefix
19
+ * @param s
20
+ */
21
public static void printAllPermutations(String prefix, String s) {
22
int len = s.length();
23
if (len == 0) {
0 commit comments