Car Fleet — Stack

Count how many clusters of cars reach the end of a one-lane road, where a faster car stuck behind a slower one joins its group.

Stack · Medium

More in Stack

All algorithm problems