Skip to content

Commit 36928dd

Browse files
committed
scramble string
1 parent 351e1bc commit 36928dd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎PuzzleCoding/src/ScrambleString.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@
4141
*/
4242
public class ScrambleString {
4343
public static void main(String[] args) {
44-
// String s1 = "apple";
45-
// String s2 = "palpe";
44+
45+
// they are anagram as a whole string, but not scramble
4646
String s1 = "tiger";
4747
String s2 = "tgrie";
4848

4949
System.out.println(isScrambleStringRecursive(s1, s2));
5050

51+
// they are anagram as well as scramble
5152
s1 = "tiger";
5253
s2 = "itreg";
5354

0 commit comments

Comments
 (0)