Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit 9f78966

Browse files
committed
Added 1550_Three_Consecutive_Odds.py
1 parent 21fb652 commit 9f78966

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class Solution:
2+
def threeConsecutiveOdds(self, arr: List[int]) -> bool:
3+
return '111' in "".join([str(i%2) for i in arr])

0 commit comments

Comments
 (0)