As a pure math problem it’s got a few constraints such as the track not physically intersecting with itself which go beyond the stated question.
So yes it’s a toy problem, but one constrained by real world objects.
the stack overflow answers are math.
Try thinking for a few seconds before posting such a meritless dismissal.
That gives you the impression that goldcd fully comprehended the scope of the inquiry?