โ† MAQ Software questions

Print all combinations and permutations for n lights

Filed under MAQ Software

Given n lights that can be in either an 'on' (1) or 'off' (0) state, write a program to print all possible configurations (combinations/permutations) of the lights.

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 MAQ Software questions

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