Skip to content

Commit 7a395d2

Browse files
update 3224
1 parent dc1249b commit 7a395d2

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/com/fishercoder/solutions/fourththousand

1 file changed

+1
-1
lines changed

Diff for: src/main/java/com/fishercoder/solutions/fourththousand/_3224.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public int minChanges(int[] nums, int k) {
2727
List<int[]> modes = new ArrayList<>();
2828
modes.add(list.get(0));
2929
int i = 1;
30-
//in case there are ties for the same mode
30+
//in case there are ties (same frequency, different mode values)
3131
while (i < list.size() && list.get(i)[1] == list.get(0)[1]) {
3232
modes.add(list.get(i++));
3333
}

0 commit comments

Comments
 (0)