Back to EY Backend Engineer interview

Interview question

Merge intervals and discuss time/space complexity

Asked in EY Backend Engineer interviews

Asked by

49% candidates

Difficulty

Medium

Round

Technical Round

AI synthesized from candidate reports

Back to Questions

Question 5 of 5

Merge intervals and discuss time/space complexity

Medium58% Candidate ReportsCODINGEYBackend Engineer

Question

Merge intervals and discuss time/space complexity

High-Level Approach

Sort, iterate, extend last if overlap else push.

Merge intervals and discuss time/space complexity — EY… | InterviewForge AI