Interview question
Merge intervals and discuss time/space complexity
Asked in Visa Saudi Arabia Data Engineer interviews
Asked by
39% candidates
Difficulty
Medium
Round
Technical Round
AI synthesized from candidate reports
Question 3 of 5
Merge intervals and discuss time/space complexity
Medium55% Candidate ReportsCODINGVisa Saudi ArabiaData Engineer
Question
Merge intervals and discuss time/space complexity
High-Level Approach
Sort, iterate, extend last if overlap else push.