Problem 514. Spot the rectangle (Part 2)
This problem is related to the 17x17 challenge. See also Part 1 of this problem. Given a matrix in which each element is either 1, 2, 3, or 4, determine whether or not any rectangles are present. A rectangle is a formed whenever four instances of the same value appear in the corners of a rectangular region of the matrix.
You can't form any rectangles here.
There is a rectangle: a([1 3],[1 4]) is [1 1; 1 1]
Solution CommentsShow comments
Problem Recent Solvers82