← Microsoft questions

Insert interval into a set of non-overlapping intervals

Filed under Microsoft · Also reported at Infosys

Given a collection of non-overlapping intervals sorted by their start time, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.