Search⌘ K
AI Features

Solution: Find Right Interval

Solution: Find Right Interval matches each interval in an array with the interval whose unique start time is the smallest one at or after its end, returning its index or negative one when none exists.

Statement

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