Python | Video Walkthrough
Click Here For Video Walkthrough\n\nclass Solution:\n    def maxSubarrays(self, nums: List[int]) -> int:\n        AND = nums[0]\n        ZERO = 0\n        curr 
[Click Here For Video Walkthrough](https://youtu.be/lQiAFfyw6wI)\n```\nclass Solution:\n    def maxSubarrays(self, nums: List[int]) -> int:\n        AND = nums[0]\n        ZERO = 0\n        curr = nums[0]\n        for i in range(1,len(nums)):\n            if curr == 0:\n                curr = nums[i]\n                ZERO += 1\n            curr = curr & nums[i]\n            AND = AND & nums[i]\n        return 1 if AND > 0 else ZERO + int(curr == 0)\n```
['Python']