Skip to content

Commit e234bf5

Browse files
committed
feat: handling spotless issue by Yemi
1 parent 373e52e commit e234bf5

File tree

1 file changed

+3
-3
lines changed
  • lesson_13/maps_java/maps_app/src/main/java/com/codedifferently/lesson13

1 file changed

+3
-3
lines changed

lesson_13/maps_java/maps_app/src/main/java/com/codedifferently/lesson13/Lesson13.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ public class Lesson13 {
44
public int findPermutationDifference(String s, String t) {
55
int result = 0;
66
int strLen = s.length();
7-
for(int i= 0; i < strLen ; i++){
8-
char ch = s.charAt(i);
9-
result = result + ( Math.abs(s.indexOf(ch) - t.indexOf(ch)));
7+
for (int i = 0; i < strLen; i++) {
8+
char ch = s.charAt(i);
9+
result = result + (Math.abs(s.indexOf(ch) - t.indexOf(ch)));
1010
}
1111
return result;
1212
}

0 commit comments

Comments
 (0)