Skip to content

Commit 85e5834

Browse files
committed
Runtime: 52 ms (Top 66.2%) | Memory: 16.53 MB (Top 16.1%)
1 parent 7d7ec84 commit 85e5834

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/algorithms/M/Minimum Changes To Make Alternating Binary String/Minimum Changes To Make Alternating Binary String.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Runtime: 52 ms (Top 66.2%) | Memory: 16.53 MB (Top 16.1%)
2+
13
class Solution:
24
def minOperations(self, s: str) -> int:
35
count = 0
@@ -13,4 +15,4 @@ def minOperations(self, s: str) -> int:
1315
count += 1
1416
if s[i] == '1':
1517
count1 += 1
16-
return min(count, count1)
18+
return min(count, count1)

0 commit comments

Comments
 (0)