Interview question
Merge intervals and discuss time/space complexity
Asked in IBM Qatar Software Engineer interviews
Asked by
46% candidates
Difficulty
Medium
Round
Technical Round
AI synthesized from candidate reports
Question 5 of 5
Merge intervals and discuss time/space complexity
Medium57% Candidate ReportsCODINGIBM QatarSoftware Engineer
Question
Merge intervals and discuss time/space complexity
High-Level Approach
Sort, iterate, extend last if overlap else push.