Problem 113. N-Queens Checker
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
yurenchu
on 12 Mar 2017
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
yurenchu
on 12 Mar 2017
Cheating solution.
-
1 Comment
Jan Orwat
on 26 Sep 2013
This solution has a minor bug, but it fortunately passed the test suite. :-)
-
2 Comments
yurenchu
on 12 Mar 2017
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.
Ned Gulley
on 15 Mar 2017
Thanks yurenchu! I added your proposed test point to the tests.
-
2 Comments
Alfonso Nieto-Castanon
on 27 Jan 2012
test suite needs additional samples that fail due to diagonal movements (e.g. [1,0;0,1])
Ned Gulley
on 30 Jan 2012
I added this test. Rescoring now. Thanks for the suggestion.
Problem Recent Solvers266
Suggested Problems
-
4672 Solvers
-
3127 Solvers
-
2515 Solvers
-
Switch matrix to a column vector
319 Solvers
-
3055 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!