This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Mark
on 30 May 2012
I think you also need to check the diagonals of fliplr(a). The tests did not include multiple queens on any of those diagonals.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!