current_score
to 0.result
to 0.nums
:
a. Update current_score
to be the bitwise AND of current_score
and the current number.
b. If current_score
becomes zero, increment result
and reset current_score
to the next number.current_score
is not zero, return 1 as we cannot split the array further.result
as the maximum number of subarrays.