Payam, this is a good puzzle, but the code in the template and the test suite gives away the answer. I suggest removing the code from the template and checking the validity of the answer by applying the rules to rows, columns, and 3x3 squares.
Given an unsigned integer x, find the largest y by rearranging the bits in x
795 Solvers
597 Solvers
Determine the number of odd integers in a vector
444 Solvers
384 Solvers
133 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!