Question:

Six lights are arranged in a row Each light is also a button

Last updated: 2/3/2023

Six lights are arranged in a row Each light is also a button

Six lights are arranged in a row Each light is also a button When a button is pressed its own light and all the lights neighboring it i e to the left an the right are toggled i e any light that was off is turned on and vice versa Figure out which buttons to press to tur all the lights if the starting position is as shown above For each button enter 1 if the button should be pressed and 0 if it should not be pressed