I had my first telephonic round today. I was not able to give an efficient solution, and the code which I wrote was sloppy. The call went for the standard 45 minutes.
Following is the question: Given a list of ranges, find whether the target range is in the union of the given intervals.
e.g.: Input: a list of intervals, e.g. [-10, 10], [50, 100], [0, 20] & a target range Output: true if the target can be covered by the union of all intervals. e.g. return true if the target is [-5, 15] return false if the target is [30, 60]
Counter-example: target is [0, 100], intervals are [50, 60], [20, 30], [60, 80], [0, 20], [80, 100], [30, 50]
Given a list of ranges, find whether the target range is in the union of the given intervals.
For example:
Input:
[-10, 10], [50, 100], [0, 20]Output:
true if the target can be covered by the union of all intervals.
true if the target is [-5, 15].false if the target is [30, 60].Counter-example:
Target is [0, 100], intervals are [50, 60], [20, 30], [60, 80], [0, 20], [80, 100], [30, 50].
The following metrics were computed from 1 interview experience for the Meta Applications Engineer Internship role in United States.
Meta's interview process for their Applications Engineer Internship roles in the United States is extremely selective, failing the vast majority of engineers.
Candidates reported having very good feelings for Meta's Applications Engineer Internship interview process in United States.