Merge Intervals at Apple
Medium51.2% acceptance
This problem has 84.7% frequency at Apple.
Problem Description
Given an array of `intervals` where `intervals[i] = [starti, endi]`, merge all overlapping intervals, and return _an array of the non-overlapping intervals that cover all the intervals in the input_.
Read full problem and hintsTopics
Also asked at 107 companies
More Apple Questions
Two SumEasyNumber of IslandsMediumBest Time to Buy and Sell StockEasyDesign Hit CounterMediumLongest Common PrefixEasy
View all Apple questions