Find Rectangles Find Rectangles
Undefined
English

This mission is an adaptation of the "Rectangles" game (from Simon Tatham's Portable Puzzle Collection). If you are lost or just want to play, the game is available here.

You have to divide a rectangular grid into rectangles, so that each rectangle contains exactly one cell with a non-empty number and the rectangle area is equal to this number.

The grid will be represented by a list of list of integers.
A rectangle will be represented by a tuple or list of four integers:

  • the first two are the coordinates of the top left corner ;
  • the last two are the coordinates of the bottom right corner.
You should be an authorized user in order to see the full description and start solving this mission.