Google L4 phonescreen: selected

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-10-12Added By Anonymous
Source: Link

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

Original Post Content:

Time: 45 mins
We’re given:
• max_count (threshold, integer).
• period_s (time window in seconds, integer).
• Function signature: bool event(int64_t time_s);
Events arrive in real time at some Unix timestamp (time_s in seconds).
Each time an event arrives:

We need to decide whether the event rate in the last period_s seconds exceeds max_count.

• If yes → return true.
• Otherwise → return false.

Once I completed the above question, he asked two more follow-up questions, coded both of them successfully.

Got a strong hire feedback, but unfortunately, since that role got closed, the recruiter said she wouldn't be able to schedule onsites for now. We will have to wait for some time. It's been one month already.
I feel hopeless since even after performing so well in the phone screen, my candidature was dropped.

Comments