Consider a board which has 8 squares colored orange.
Each turn, you are allowed to pick 2 rows or columns and swap them. However, the order of the squares is not changed.
The goal is to make the colored squares lie on the upper left to lower right diagonal.
Is this always possible?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
For the orange squares to be on a diagonal, they must all be in different columns and rows. This is not possible to achieve if two or more squares are in the same row or same column to begin with.