Qm

How many squares in a four-by-four grid of dots?

Sixteen dots form a 4 by 4 square array.

How many squares can be drawn with all four corners on dots? Count the ordinary upright squares of every size, and also the tilted ones whose sides are not parallel to the grid.

Show a hint

Every tilted square sits inside an upright "bounding" square, with its corners on the bounding square's sides. So count, for each upright square, how many squares it bounds.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

1, 2, 4, 8, 16, ... and the pattern that breaksHow many diagonals does a cube have?How many diagonals does a twenty-sided polygon have?Fifty-one ants and a small square cardHow many squares are on a chessboard?
All questions →