← Flipkart questions

Largest Empty Gap on a Road with Overlapping Intervals

Filed under Flipkart

Given the length of a road $n$ and a list of car intervals $[start, end]$ that may overlap, find the length of the longest continuous segment on the road that is not covered by any car.

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 Flipkart questions

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