Problem 44767. Lights Out 13 - 5x5, three stages, x moves
Lights Out is a logic game wherein all lights need to be turned off to complete each board. See the first problem in the series for an introduction and problem 12 for an explanation of three stages.
This problem contains boards that each require any number of moves to solve. Recall that lights are activated through three stages: on1 (1) to on2 (2) to off (0). For example, if
board = [1 1 0 2 2 1 0 0 0 2 0 0 0 0 0 0 2 2 0 0 2 1 1 2 0]
the answer is:
moves = [1 1 10 15 21]
Up to two moves are possible for each button (index).
Prev.: 5x5, 3 stages, <7 moves — Next: 5x5, 4 stages, x moves
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers9
Suggested Problems
-
1901 Solvers
-
Maximum running product for a string of numbers
2160 Solvers
-
Getting the indices from a vector
9800 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
613 Solvers
-
412 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!