Practice · 1 of 3
The Unlabeled Wall
CHALLENGE
Difficulty: advanced+25 XP
**Scenario.** A problem gives n ≤ 100000 intervals and asks for the largest set of pairwise non-overlapping ones. The statement mentions no algorithm. First move? **Which approach is the best fit? The program only needs to print the letter.** **A)** Try DP over all subsets **B)** Model it (intervals, objective = max compatible set), note n ≤ 10^5 admits O(n log n), then hunt for the exchange-argument sort key **C)** Brute force with pruning **D)** Random restarts with different orders
Press Submit to check your solution.
Back to lesson: Practice: Pipeline Drills