Fade to Solo
Stack

Car Fleet

30 MINMleetcode ↗

Problem

Cars sit at different positions on a one-lane road, each with its own speed, all driving toward the same target. A car that catches up to a slower one ahead is stuck driving at that car's speed, forming a fleet. Count how many distinct fleets arrive at the target.

30 MIN00:00unlocks in 30:00
locked30:00 left