Find Daily Peak Concurrent Google Meet Participants per Workspace Domain

Last updated: November 29, 2026

Quick Overview

From Meet join and leave events, compute for each Workspace domain and day the peak number of participants connected at the same moment and when that peak first occurred.

Google
Data Manipulation (SQL/Python)
Data Engineer
Google
November 29, 2026
Data Engineer
Technical Screen
Data Manipulation (SQL/Python)
Medium

0

0

0 solved


From Meet join and leave events, compute for each Workspace domain and day the peak number of participants connected at the same moment and when that peak first occurred.

Capacity planning and admin reports for Google Meet need concurrency, not totals. The technical screen interviewer checks the sweep-line idea in SQL: convert events to +1 and -1, take a running sum ordered by time with a defined tie order, and deal with calls already in progress at the window start.

What the Interviewer Expects
  • Turn joins into +1 and leaves into -1
  • Running SUM partitioned by domain and ordered by time
  • Define tie order at equal timestamps and justify it
  • Include warm-up data so calls in progress at the start are counted
  • Aggregate the running count to a daily max and its time
Key Topics to Cover
sweep line
running sum
concurrency
window functions
How to Approach This
  1. Clarify the schema and expected output format before writing queries.
  2. Use CTEs (WITH clauses) to break complex queries into readable steps.
  3. Consider window functions (ROW_NUMBER, RANK, LAG, LEAD) for ranking and sequential analysis.
  4. Watch for NULLs, duplicates, and edge cases in JOINs and GROUP BY.
  5. For pandas, prefer vectorized operations over row-by-row iteration.
Possible Follow-up Questions
  • Leave events are missing for crashed clients. How would you bound the error?
  • How would you compute the peak number of concurrent meetings instead of participants?
  • How would you do this at one-minute granularity for a dashboard?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice SQL Problems
Sample Answer
Clarify the Data

meet_presence_events(domain_id, user_id, meeting_id, ts, event_type) with join and leave. Every join has a matching leave (I will ask; if not, see pitfalls). Peak concurrency counts participants...

Approach

Sweep line: map join to +1 and leave to -1, and take a cumulative sum per domain ordered by time. The running value after each event is the number connected right then; the daily max of it is the peak...


Submit Your Answer
Markdown supported