Merge Overlapping Intervals
Company: ByteDance
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Technical Screen
Overview: Merge an unsorted collection of closed integer intervals into a deterministic, non-overlapping union. Explain shared-endpoint behavior, duplicates, containment, empty input, immutability, complexity, and how the contract changes for half-open or streaming intervals.