LeetCode 853: Car Fleet — Step-by-Step Visual Trace
Medium — Array | Stack | Sorting | Greedy
The Problem
Given cars at different positions with different speeds all heading to the same target, determine how many car fleets will arrive at the target. Cars form a fleet when a faster car catches up to a...
blog.tracelit.dev1 min read