Java
Java copied to clipboard
Isomorphic
other example:
String str1 = "abbbbaac"; String str2 = "kffffkkd";
for (int i = 0; i < s1.length() -1 ; i++) { boolean b1 = s1.charAt(i) == s1.charAt(i + 1); boolean b2 = s2.charAt(i) == s2.charAt(i + 1); if (b1 != b2) { System.out.println("false"); break; } }