Problem 2728 · Medium

Count Houses in a Circular Street

teaching model: walk once around the circle from a start point and count the occupied positions, wrapping at the end.

Open the interactive visualisation