1165. Meeting Scheduler

Medium
Array
Two Pointers
Sorting

Description

Hints

Hint 1
Assume that in the solution, the selected slot from slotsA is bigger than the respectively selected slot from slotsB.
Hint 2
Use two pointers in order to try all the possible intersections, and check the length.
Hint 3
Do the same in step N° 1 but now assume that the selected slot from slotsB is bigger, return the minimum of the two options.

Statistics

Acceptance
55.2%
Submissions
187,107
Accepted
103,260