leetle

Daily challenge for 2025-01-26

26. Merge Intervals

Write a function solve that merges overlapping intervals and returns the merged list. Intervals are represented as lists of two integers: start and end.

Example:
Input: [[1,3],[2,6],[8,10],[15,18]]
Output: [[1,6],[8,10],[15,18]]

Run this challenge interactively in Python or JavaScript when the app loads.