Minimum Flips to Achieve Target Bulb Configuration
1529. Bulb Switcher IV
There are n light bulbs arranged in a row from left to right, numbered from 0 to n-1. Initially, all bulbs are turned off.
Your task is to make the state of the bulbs match the target configuration, where target[i] = 1 means the i-th bulb is on, and target[i] = 0 means the i-th bulb is off.
You have a switch that can flip ...
Posted on Fri, 25 Sep 2026 16:47:54 +0000 by pkallberg21