1
# Runtime: 106 ms (Top 5.05%) | Memory: 14 MB (Top 60.17%)
2
class Solution:
3
def threeConsecutiveOdds(self, arr: List[int]) -> bool:
4
c = 0
5
for i in arr:
6
if i % 2 == 0:
7
c = 0
8
else:
9
c += 1
10
if c == 3:
11
return True
12
return False

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0