Merge Intervals at Bloomberg
Medium51.1% acceptance
This problem has 87.5% frequency at Bloomberg.
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 108 companies
More Bloomberg Questions
Two SumEasyBest Time to Buy and Sell StockEasyNumber of IslandsMediumInsert Delete GetRandom O(1)MediumMedian of Two Sorted ArraysHard
View all Bloomberg questions