Leetcode, Interval, Interview Questions, Google, Meta.
= (1,6) return true Explanation — Points 1 to 6 lies in list of interval given 1 to 4. 2 to 5 and 5 to 7. [(1,4),(6,7),(2,5)] and interval — (1,6) return false Explanation — Distance between 5 to 6 is not covered in the list given so return false Solution: One possible solution is to use events.