Back to HSBC South Africa Data Engineer interview

Interview question

Merge intervals and discuss time/space complexity

Asked in HSBC South Africa Data Engineer interviews

Asked by

58% candidates

Difficulty

Medium

Round

Technical Round

AI synthesized from candidate reports

Back to Questions

Question 3 of 5

Merge intervals and discuss time/space complexity

Medium55% Candidate ReportsCODINGHSBC South AfricaData 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 — HSBC… | InterviewForge AI