A classic greedy problem that teaches you to think backwards from the goal, simplifying a seemingly complex reachability problem into a single linear scan.
Enable JavaScript for the full StreamPrep guide.