โ† Infosys questions

Switches and Bulb State Toggle

Filed under Infosys

N switches are connected in series. A switch turns ON only if all previous switches are ON. A bulb lights up if all N switches are ON. Find the state of the bulb after K toggles.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Infosys questions

Collected from public candidate posts and coding forums. Updated Nov 2026.