Merge Overlapping Intervals

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

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.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →