Search⌘ K
AI Features

Solution: Remove Covered Intervals

Solution: Remove Covered Intervals gives a list of unique half-open intervals. Remove every interval fully contained within another, then return the number that remain.

Statement

Given an array of intervals, where each interval is represented as intervals[i] =[li,ri)= [l_i, r_i) ...