Time Intervals Where Two Signals Satisfy a Condition

Asked at Waymo · Coding Questions · Difficulty: Medium · Last asked Jun 13, 2026

Two sensors each report a boolean signal that changes at certain timestamps. Implement a function that combines the two signals with AND or OR and returns the continuous time intervals during which the combined signal is true.

Loading the problem…