Draw Paths / Strokes on a Set of Points

Asked at OpenAI · Coding Questions · Difficulty: Medium · Last asked Oct 7, 2025

You are given an undirected graph where vertices are points and edges are line segments that must be drawn. A single "stroke" starts at any vertex and continuously traverses edges to draw them, with the constraint that each edge must be drawn **exactly once** overall. You may revisit vertices, but you may not traverse (draw) an edge more than once.

Loading the problem…