Merge Overlapping Intervals

Talk it through out loud with your AI coach.

The problem

  • medium
  • Pro

You're given a list of time ranges in no particular order. Merge every group of overlapping ranges into one, and return the merged ranges. Explain your approach, its cost and the tricky cases.