You are viewing a single comment's thread. Return to all comments →
For this case:
4 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0
We can exchange the top left 1*2 rectangle with top right 1*2 rectangle and get a 2*2 square.
But the answer of author's code is 1.
Seems like cookies are disabled on this browser, please enable them to open this website
True Square in a Binary Matrix
You are viewing a single comment's thread. Return to all comments →
For this case:
We can exchange the top left 1*2 rectangle with top right 1*2 rectangle and get a 2*2 square.
But the answer of author's code is 1.