Combine Overlapping Busy Periods
Asked at Snowflake · Coding Questions · Difficulty: Medium · Last asked Jan 20, 2026
A calendar stores busy periods as `[start, end]` pairs, and many of them overlap. Combine every group of overlapping periods into one period, so the result lists the same busy time with no overlaps. Two periods that only touch at an end point also combine into one.
Loading the problem…
More Snowflake interview questions
- Design a Distributed Job Scheduler with Cron, Pause, Resume
- Design an ACL Authorization Service
- Design an S3-Style Blob Store with Deduplication
- SQL: Project Duration & Budget per Employee
- Cross-Platform Client Logging Library
- Design a Quota System