Search⌘ K
AI Features

Solution: Find Right Interval

Solution: Find Right Interval assigns each interval the smallest-start interval beginning at or after its end, and returns its index or negative one if none exists.

Statement

You are given an array of intervals where each interval is represented by a pair [starti,endi][start_i, end_i] ...