Showing posts with label LikeALittle. Show all posts
Showing posts with label LikeALittle. Show all posts

Friday, September 16, 2011

Given a list of N line segments on the X axis: (x1[i], x2[i]) where i = 1 to N; And then a list of M queries. Each query inputs one x-coordinate and you need to output the set of all {i} that overlaps this point.