Merge Intervals at Salesforce

Medium51.1% acceptance

This problem has 62.5% frequency at Salesforce.

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 hints

Topics

Also asked at 108 companies


More Salesforce Questions

View all Salesforce questions