Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9637679

Browse files
committedMay 11, 2025·
Fixed style
1 parent c8073b3 commit 9637679

File tree

1 file changed

+3
-1
lines changed
  • src/main/java/g3501_3600/s3545_minimum_deletions_for_at_most_k_distinct_characters

1 file changed

+3
-1
lines changed
 

‎src/main/java/g3501_3600/s3545_minimum_deletions_for_at_most_k_distinct_characters/Solution.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ public int minDeletion(String s, int k) {
1313
}
1414
int dischar = 0;
1515
for (int i = 0; i < 26; i++) {
16-
if (carr[i] > 0) dischar++;
16+
if (carr[i] > 0) {
17+
dischar++;
18+
}
1719
}
1820
while (dischar > k) {
1921
int minF = Integer.MAX_VALUE;

0 commit comments

Comments
 (0)
Please sign in to comment.