Do Two Rectangles Overlap?

Talk it through out loud with your AI coach.

The problem

  • easy
  • Pro

Two rectangles have sides parallel to the axes, and each is given by its bottom-left and top-right corners. Decide whether they overlap with a positive area, and then work out the area of the overlap.

What a strong answer covers

  • Reducing the two-dimensional question to two one-dimensional ones.
  • The comparison for each axis, including what happens at shared edges.
  • Turning the same idea into the size of the overlap.
  • A shape arrangement that breaks an intuitive but wrong approach.

Common mistake: Checking only whether a corner of one rectangle sits inside the other, which misses rectangles that cross like a plus sign.

Knowing this is half of it. Saying it clearly out loud is the part the coach helps you practise.

Practise it out loud