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…
More OpenAI interview questions
- Classifier Analysis
- Clean Noisy Human Labels by Scoring Annotator Reliability
- Two-Team Turn-Based Battle Simulator
- Backward Pass of a Row-Sharded MLP with all_gather
- Transformer Fundamentals: Attention, Positions and Normalization
- Debug a Mini GPT and Add a KV Cache