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.
This problem contains boards that each require 13 moves to solve. For example, if
board = [0 1 0 1 0
1 0 1 0 1
0 1 1 1 0
1 0 1 0 1
0 1 0 1 0];
an answer is:
moves = [1:5 8 13 18 21:25]
Prev.: 5x5, 10 moves —
Next: 5x5, x moves
Given an unsigned integer x, find the largest y by rearranging the bits in x
Distance walked 1D
Is the Point in a Triangle?
Are all the three given point in the same line?
Max index of 3D array
I Plead the Fifth
Lights Out 2 - 5x5, 4 moves
Divisible by n, prime vs. composite divisors
Scrabble Scores - 3
Radiation Heat Transfer — View Factors (2)
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office