Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The minimum score will always be the bitwise <code>AND</code> of all elements of the array.
If the minimum score is not equal to <code>0</code>, the only possible split will be to keep all elements in one subarray.
Otherwise, all of the subarrays should have a score of <code>0</code>, we can greedily split the array while trying to make each subarray as small as possible.