Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
If <code>nums[0]</code> is 0, then the only way to change it to 1 is by doing an operation on the first 3 elements of the array.
After Changing <code>nums[0]</code> to 1, use the same logic on the remaining array.