Split Array Into Maximum Number of Subarrays
If the whole array has a nonzero AND, one subarray is best; otherwise close a segment each time its running AND reaches zero.
If the whole array has a nonzero AND, one subarray is best; otherwise close a segment each time its running AND reaches zero.