Google - L4 SWE III - phone screen - Zurich

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-08-18Added By Anonymous
Source: Link

Company: Google
Role: L4
Interview Stage: Phone Screen
Location: Zurich
Year: unknown

Original Post Content:

I had a phone screen today and the question was a merge interval (similar to LC #56). I performed very bad. Just wanted to share the type of question so others can use. I rephrased the problem (using gpt), so to have no collision with google NDA.
Gaps on a Half-Line (short)

Input: N, then N lines of c r.
Each pair blocks the closed interval [c-r, c+r] on [0, infinity).

Output all maximal uncovered gaps in increasing order as a b; use -1 for +infinity.
Notes: intervals are closed (touching -> no gap); blocks may start < 0; include the gap from 0 if any.

Comments