Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 566ddd4

Browse files
author
Ram swaroop
committed
comments added
1 parent 6bccb40 commit 566ddd4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/me/ramswaroop/arrays/StringPermutations.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,18 @@
66
* @author: ramswaroop
77
* @date: 9/24/15
88
* @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
911
*/
1012
public class StringPermutations {
1113

14+
/**
15+
* Generates and prints all possible permutations (in order)
16+
* of string {@param s}.
17+
*
18+
* @param prefix
19+
* @param s
20+
*/
1221
public static void printAllPermutations(String prefix, String s) {
1322
int len = s.length();
1423
if (len == 0) {

0 commit comments

Comments
 (0)