Problem 1184 · Easy

Distance Between Bus Stops

On a circular route, find the shorter way between two stops by comparing the clockwise and counter-clockwise distances. The visual draws the ring of stops and highlights both arcs.

Open the interactive visualisation