Runtime 96 ms  Beats 100.00% of users with Go
Code\n\nfunc maxSubarrays(nums []int) int {\n    totalAnd := nums[0]\n\tn := len(nums)\n\tfor _, num := range nums {\n\t\ttotalAnd &= num\n\t}\n\tif totalAnd > 
# Code\n```\nfunc maxSubarrays(nums []int) int {\n    totalAnd := nums[0]\n\tn := len(nums)\n\tfor _, num := range nums {\n\t\ttotalAnd &= num\n\t}\n\tif totalAnd > 0 {\n\t\treturn 1\n\t}\n\tcurrAnd := 0\n\tsplit := 0\n\tfor i := 0; i < n; i++ {\n\t\tif currAnd == 0 {\n\t\t\tcurrAnd = nums[i]\n\t\t\tsplit++\n\t\t} else {\n\t\t\tcurrAnd &= nums[i]\n\t\t}\n\t}\n\tif currAnd > 0 {\n\t\tsplit--\n\t}\n\treturn split \n}\n```
['Go']