Meeting Concurrency Intervals
Updated
Problem statement
Given meeting intervals and a positive target x, return each maximal half-open interval during which exactly x meetings are active.
Function
exactMeetingConcurrency(meetings: int[][], x: int) → int[][]Examples
Example 1
meetings = [[1,4],[2,5],[4,6]]x = 2return = [[2,5]]A simultaneous end and start keeps the count at two.
Example 2
meetings = [[1,3],[1,3]]x = 2return = [[1,3]]Both meetings are active throughout the interval.
Constraints
0 <= meetings.length <= 100000- Each row is
[start,end]withstart <= end. 1 <= x <= meetings.length + 1
More Google Onsite Interview questions
- Route Pattern MatcherPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
- Evaluate a Nested Math ExpressionPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
- Distinct Subset SumsONSITE INTERVIEW · Seen Nov 2026
- Playlist With No Same Artist in a RowONSITE INTERVIEW · Seen Nov 2026
- Delete Nodes and Return Forest RootsONSITE INTERVIEW · Seen Nov 2026
- Dice-Walk Winning ProbabilityPHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
- First and Last Target Position in a Mountain ArrayONSITE INTERVIEW · Seen Nov 2026
- Lowest Common Ancestor in an N-ary TreePHONE SCREEN · ONSITE INTERVIEW · Seen Nov 2026
- 0/1 Knapsack with Weight and Volume LimitsONSITE INTERVIEW · Seen Nov 2026
- Batched Subsequence Word MatchesONSITE INTERVIEW · Seen Nov 2026
Similar questions at other companies
- Meeting Scheduling SystemHevo Data · ONSITE INTERVIEW
- Detect a Server RAM Capacity BreachMyntra · ONSITE INTERVIEWMyntra interview questions
- Peak Chat Load Across AgentsCresta · PHONE SCREENCresta interview questions
- Majority Labels over Audio IntervalsNooks · PHONE SCREEN
- Brightest Position on a StreetCapital One · OACapital One interview questions
- Merge IntervalsApple · OA · PHONE SCREEN · ONSITE INTERVIEWApple interview questions
- Merge Overlapping IntervalsAtlassian · PHONE SCREEN · ONSITE INTERVIEWAtlassian interview questions
- Maximum Concurrent Processes (Bar Raiser Round)Amazon · PHONE SCREEN · ONSITE INTERVIEW
- Maximum Intervals Overlapping a Fixed-Length WindowBooking.com · ONSITE INTERVIEW
- Meeting Rooms IISalesforce · ONSITE INTERVIEWSalesforce interview questions