Maximize Solar-Powered Bulbs
Asked at Amazon · Coding Questions · Difficulty: Medium
A binary string `bulbs` has `'0'` (electric) and `'1'` (solar) bulbs. You may change a `'0'` to `'1'` only if the new `'1'` would not be adjacent to any other `'1'` (existing adjacency among original bulbs is allowed). Return the maximum total number of solar bulbs (existing plus newly placed).
Loading the problem…