Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The goal is to foundfind the "first" valid rectangle or one of the rectangles with the largest area, calculated byarea(right-left+1)*(bottom-top+1)
If there are multiple rectangles with the same maximum area, output any one. Optionally the one with (top coordinate, left coordinate, bottomright coordinate, rightbottom coordinate) lexicographically smallest.
To calculate area for (1,0) to (4,3) you do (4-1)*(3-0).
Rectangles must have edges parallel to the board's edge.
The board has, at least, one non-zero area rectangle.
Each letter is a printable ASCII char from A to Z (both included).
The goal is to found the "first" valid rectangle with the largest area
If there are multiple rectangles with the same maximum area, output one with (top coordinate, left coordinate, bottom coordinate, right coordinate) lexicographically smallest.
To calculate area for (1,0) to (4,3) you do (4-1)*(3-0).
Rectangles must have edges parallel to the board's edge.
The board has, at least, one non-zero area rectangle.
Each letter is a printable ASCII char from A to Z (both included).
The goal is to find the rectangle or one of the rectangles with the largest area, calculated by(right-left+1)*(bottom-top+1)
If there are multiple rectangles with the same maximum area, output any one. Optionally the one with (top coordinate, left coordinate, right coordinate, bottom coordinate) lexicographically smallest.
Rectangles must have edges parallel to the board's edge.
Each letter is a printable ASCII char from A to Z (both included).