Photo by Tony Hand on Unsplash1550. Three Consecutive OddsTapan Rachchh·Jul 1, 2024·1 min readclass Solution: def threeConsecutiveOdds(self, arr: List[int]) -> bool: count = 0 for e in arr: if e % 2: count += 1 else: count = 0 if count > 2: return True return count > 2 Pythonleetcodearray Share this