Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in --d --h --m --s-- days -- hours -- minutes -- seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 14d 23h 10m 59s14 days 23 hours 10 minutes 59 seconds.
Guide: Jane Street Interview Questions: What They Actually Look For · Quant Brainteasers: 10 Classic Interview Puzzles and the Idea Behind Each
Cut the 5×5 grid below into connected regions (cells are connected when they share an edge). Every region must be symmetric: some rotation (by 90°, 180° or 270°) or reflection (in a horizontal, vertical or diagonal line), other than doing nothing, carries the region exactly onto itself. A single cell counts as a symmetric region.
For a cell c in a region R, call a cell an opposite of c if some such symmetry of R moves c to it. The value of c is the length of the shortest walk inside R (steps between edge-neighbours) from c to its nearest opposite. A cell that some symmetry leaves where it is has value 0.
Every number in the grid must equal the value of its cell. Cells without a number may have any value.
Rows and columns are numbered 0 to 4 from the top-left corner.
0 1 2 3 4
+----+----+----+----+----+
0 | 8 | | | 2 | |
+----+----+----+----+----+
1 | 2 | 0 | 0 | 6 | |
+----+----+----+----+----+
2 | 4 | | | | |
+----+----+----+----+----+
3 | 2 | | | 2 | |
+----+----+----+----+----+
4 | 6 | | | 0 | 8 |
+----+----+----+----+----+Answer format: a single integer, the sum of the cubes of the areas of the regions in the completed grid.