Skip to content

Commit 3b30770

Browse files
committed
Runtime: 47 ms (Top 65.12%) | Memory: 13.9 MB (Top 66.60%)
1 parent 9a698e5 commit 3b30770

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
# Runtime: 47 ms (Top 65.12%) | Memory: 13.9 MB (Top 66.60%)
12
class Solution:
23
def checkZeroOnes(self, s: str) -> bool:
34
s1 = s.split('0')
45
s0 = s.split('1')
56
r1 = max([len(i) for i in s1])
67
r0 = max([len(i) for i in s0])
7-
return r1>r0
8+
return r1>r0

0 commit comments

Comments
 (0)