Skip to content

Commit 58486d4

Browse files
refactor 1182, no need to sort indices
1 parent d14df37 commit 58486d4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/java/com/fishercoder/solutions/_1182.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ private Map<Integer, List<Integer>> buildMap(int[] colors) {
7676
}
7777
map.get(colors[i]).add(i);
7878
}
79-
for (Map.Entry<Integer, List<Integer>> entry : map.entrySet()) {
80-
Collections.sort(entry.getValue());
81-
entry.setValue(entry.getValue());
82-
}
8379
return map;
8480
}
8581
}

0 commit comments

Comments
 (0)