Problem 45237. Queen's move - 02
Solution Stats
Problem Comments
-
2 Comments
Rafael S.T. Vieira
on 2 Nov 2022
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.
Dyuman Joshi
on 2 Nov 2022
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.
Solution Comments
Show commentsProblem Recent Solvers7
Suggested Problems
-
Select every other element of a vector
28865 Solvers
-
2088 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
346 Solvers
-
1216 Solvers
-
112 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!