Updated: 2024-03-12 1 min read On This Pageclass Solution: def hasTrailingZeros(self, nums: List[int]) -> bool: return sum(x & 1 ^ 1 for x in nums) >= 2