Microsoft interview question

Given a list of meeting time intervals, determine if a person could attend all meetings.

Interview Answer

Anonymous

22 Jul 2025

I used an interval-sorting approach, sorted the list by start time, and checked for overlaps between adjacent intervals. I walked through edge cases like zero or one meeting and mentioned time complexity. The follow-up was about optimizing for large input size.