← Questions

Fewest intervals to remove so one covers the rest

0
AmazonCodingLast asked Jul 2025

Given a list of intervals, remove as few as possible so that among the remaining intervals at least one covers all the others. Return how many you remove.

Write and test your solution herePython in your browser, the question's tests level by level, every submission kept for you.Sign in to start coding