Skip to content

Commit 19ef81b

Browse files
authored
Update Solution.java
1 parent b807187 commit 19ef81b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/g1501_1600/s1529_bulb_switcher_iv/Solution.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ public class Solution {
66
public int minFlips(String target) {
77
int flipCount = target.charAt(0) - 48;
88
char prev = target.charAt(0);
9-
109
for (char ch : target.toCharArray()) {
1110
if (ch != prev) {
1211
flipCount++;
1312
prev = ch;
1413
}
1514
}
16-
1715
return flipCount;
1816
}
1917
}

0 commit comments

Comments
 (0)