Streaming Interval Coverage on a Number Axis

Asked at Waymo · Coding Questions · Difficulty: Medium · Last asked Apr 1, 2026

Phone screen for SRE / SWE. Points stream in onto an axis `[0, 50]`; each point pollutes a length-1 interval centered at it (±0.5). Implement a function that ingests one point at a time and returns whether the full axis is polluted.

Loading the problem…