Merge a list of overlapping delivery time slots.
Filed under Swiggy
The question
Given a set of time intervals, combine all overlapping or adjacent slots into a single set of non-overlapping intervals.
No write-up yet. Related questions below have one.
Related Swiggy questions
Collected from public candidate posts and coding forums. Updated Nov 2026.