Hi Leetcode community,
I recently got this question in a Google phone screen. Can someone tell me what answer the interviewer expected?? Did they really expect me to do Segment trees in 30 minutes??
Given a list of ranges and a point in the range, return the range that this point overlaps with.
Eg: {2, 5} {0, 9} {3, 7} and point 8 returns {0, 9}
Extension- Return all ranges