Problem 436 · Medium

Find Right Interval

For each interval, find the index of the interval whose start is the earliest one at or after its end, or report none. The visual places ends and starts on a sorted number line and highlights the first qualifying start for each query.

Open the interactive visualisation