Problem 113. N-Queens Checker
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Only works because test suite isn't extensive enough. Wouldn't work with a = [1 0 1; 0 0 0; 0 1 0], for example.
-
1 Comment
Cheating solution.
-
1 Comment
This solution has a minor bug, but it fortunately passed the test suite. :-)
-
2 Comments
It's supposed to be a n-QUEENS checker, not an n-KINGS checker. This solution wouldn't work with a = [1 0 1; 0 0 0; 0 1 0], for example.
Thanks yurenchu! I added your proposed test point to the tests.
-
2 Comments
test suite needs additional samples that fail due to diagonal movements (e.g. [1,0;0,1])
I added this test. Rescoring now. Thanks for the suggestion.
Problem Recent Solvers262
Suggested Problems
-
3828 Solvers
-
Find the sum of the elements in the "second" diagonal
1060 Solvers
-
Back to basics 3 - Temp Directory
344 Solvers
-
Convert from Base 10 to base 5
227 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
679 Solvers
More from this Author50
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!