Java icon indicating copy to clipboard operation
Java copied to clipboard

Isomorphic

Open xiangzi168 opened this issue 3 years ago • 0 comments

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; } }

xiangzi168 avatar Sep 14 '22 04:09 xiangzi168