Skip to content

Commit fa40e21

Browse files
committed
fix: ran gradle command to fix issue
1 parent 3499a6b commit fa40e21

File tree

1 file changed

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

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ public class Lesson13 {
1010
*/
1111

1212
/**
13-
* We need to return the absolute difference btw. a chars index in both 's' and 't'
14-
* if s = "abc" and t = "bac"
15-
* for s: a @index 0, b @index 1, c @index 2
16-
* for t: a @index 1, b @index 0, c @index 2
17-
* the math: |0 - 1| + |1 - 0| + \2 - 2| = |-1| + |1| + |0| = 1 + 1 + 0 = 2 we return 2
13+
* We need to return the absolute difference btw. a chars index in both 's' and 't' if s = "abc"
14+
* and t = "bac" for s: a @index 0, b @index 1, c @index 2 for t: a @index 1, b @index 0, c @index
15+
* 2 the math: |0 - 1| + |1 - 0| + \2 - 2| = |-1| + |1| + |0| = 1 + 1 + 0 = 2 we return 2
1816
*/
1917
public int findPermutationDifference(String s, String t) {
2018
var compareStrings = new HashMap<Character, Integer>();

0 commit comments

Comments
 (0)