Loading problem…
You're building a calendar scheduling feature for a meeting room booking app. Users can book time slots, and you need to merge overlapping time slots into consolidated ranges.
Given intervals where intervals[i] = [start_i, end_i], return non-overlapping intervals that cover the same time ranges. Intervals are inclusive, so [1,4] and [4,5] overlap.
Example 1:
Example 2:
Example 3: