Skip to content

Commit 5f7c2c6

Browse files
authored
Update Solution.java
1 parent 16ac06f commit 5f7c2c6

File tree

1 file changed

+0
-3
lines changed
  • src/main/java/g3001_3100/s3003_maximize_the_number_of_partitions_after_operations

1 file changed

+0
-3
lines changed

src/main/java/g3001_3100/s3003_maximize_the_number_of_partitions_after_operations/Solution.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public int maxPartitionsAfterOperations(String s, int k) {
3030
ansr[i] = ans;
3131
usedr[i] = used;
3232
}
33-
3433
int ansl = 0;
3534
ans = ansr[0];
3635
int l = 0;
@@ -56,7 +55,6 @@ public int maxPartitionsAfterOperations(String s, int k) {
5655
}
5756
r++;
5857
}
59-
6058
if (cntUsed == k) {
6159
if (last - l > Integer.bitCount(usedBeforeLast)) {
6260
ans = Math.max(ans, ansl + 1 + ansr[last]);
@@ -85,7 +83,6 @@ public int maxPartitionsAfterOperations(String s, int k) {
8583
l = r;
8684
ansl++;
8785
}
88-
8986
return ans;
9087
}
9188
}

0 commit comments

Comments
 (0)