Merge Intervals

Problem:

Given a collection of intervals, merge all overlapping intervals.

Examples:

					
#Given
[1,3],[2,6],[8,10],[15,18]

#Return
[1,6],[8,10],[15,18]
				

Note:
Do not assume meeting times are in any order or sorted.

Hints and Answer Checklist