Problem 45237. Queen's move - 02
Solution Stats
Problem Comments
-
2 Comments
This problem claims to be a continuation of problem 45236. Still, it does not assume the first position is always valid, nor is there a default position if the first is invalid.
Rafael, here you also have to check if there is an overlap in the position of the pieces. Two pieces on one position is not allowed and therefore the validity of that piece will be invalid.
You can see this in the example stated in the problem statement.
Problem Recent Solvers6
Suggested Problems
-
Back to basics 19 - character types
251 Solvers
-
Return elements unique to either input
725 Solvers
-
Make a random, non-repeating vector.
6447 Solvers
-
196 Solvers
-
Removing rows from a matrix is easy - but what about inserting rows?
160 Solvers
More from this Author165
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!