Skip to content

Commit 9b0c6c1

Browse files
author
AmiyahJo
committed
fix: .gradlew format
fixed violations from githubs reccomendation
1 parent 8bfc3e3 commit 9b0c6c1

File tree

1 file changed

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

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ public class Lesson13 {
77
public int findPermutationDifference(String s, String t) {
88
var charIndexMap = new HashMap<Character, Integer>();
99

10-
int totalDifference = 0;
10+
int totalDifference = 0;
1111

1212
for (int sIndex = 0; sIndex < s.length(); sIndex++) {
13-
charIndexMap.put(s.charAt(sIndex), sIndex);
13+
charIndexMap.put(s.charAt(sIndex), sIndex);
1414
}
1515

1616
for (int tIndex = 0; tIndex < t.length(); tIndex++) {
17-
int indexInS = charIndexMap.get(t.charAt(tIndex));
18-
totalDifference += Math.abs(indexInS - tIndex);
17+
int indexInS = charIndexMap.get(t.charAt(tIndex));
18+
totalDifference += Math.abs(indexInS - tIndex);
1919
}
20-
20+
2121
return totalDifference;
2222
}
2323
}

0 commit comments

Comments
 (0)