Description
Solutions
Get Meeting Intervals (Google Bangalore)
🔥 FULLTIME📚RELATED PROBLEMS
Return a list of non-overlapping time intervals when you are in a meeting.
Function Description
Complete the function getMeetingIntervals
in the editor.
getMeetingIntervals
has the following parameters:
- 1.
int[][] meetings
: an arr of intervals representing meeting times - 2.
Interval dns
: an interval representing the "Do Not Schedule" time
Returns
int[][]
: an arr of non-overlapping intervals when you are in a meeting
Example 1:
Input: meetings = [[1, 7], [5, 10], [12, 30], [22, 30], [40, 50], [60, 70]], dns = [18, 25]
Output: [[1, 10], [12, 18], [25, 30], [40, 50], [60, 70]]
Explanation:🦔
Constraints:
:)

Related Problems
Testcase
Result
Case 1
input:
output: