Easy

Check if Bitwise OR Has Trailing ZerosPython

Full explanation · Time O(n) · Space O(1)

# Time:  O(n)
# Space: O(1)

# bit manipulation
class Solution(object):
    def hasTrailingZeros(self, nums):
        """
        :type nums: List[int]
        :rtype: bool
        """
        return sum(x%2 == 0 for x in nums) >= 2