Problem 1401 · Medium

Circle and Rectangle Overlapping

Decide whether a circle and an axis-aligned rectangle share any point. The visual places the circle over the rectangle and highlights the nearest point of the box to the centre.

Open the interactive visualisation