End of Year Sale: Use Coupon Code END2025 to Get Extra 25% Off.
totalOnes).totalOnes is not divisible by 3, return [-1, -1] as it is impossible to divide the array into three parts with equal binary values.targetOnes which is totalOnes / 3.targetOnesth, (targetOnes+1)th, 2*targetOnesth, (2*targetOnes+1)th, and 3*targetOnesth ones in the array.[i1, j1], [i2, j2], and [i3, j3].j3 (trailingZeros).[i1, j1], [i2, j2] to include trailingZeros.[j1+trailingZeros, j2+trailingZeros+1].[-1, -1].