Get Meeting Intervals (Google Bangalore)

Problem Overview

  • Given meeting time intervals and one Do Not Schedule (DNS) interval, trim any overlap with DNS and return the final non-overlapping meeting intervals.
  • Input: int[][] meetings, Interval dns; Output: int[][] of merged intervals when you are in a meeting; constraints unspecified.
  • Real-world context: calendar scheduling with overlapping meetings and a DNS block affecting availability.
  • Asked in Google interviews (Google Bangalore); a coding interview problem and interview question on interval management.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: