solulubeta
Sign in
NeetCode 150 / Stack
04.06 · Problem

Car Fleet

Medium Sort by position, stack of arrival times 1 video LC 853 Pro

This problem is part of solulu Pro

n cars drive along a one-lane road towards target. Car i starts at position[i] (all distinct) with speed speed[i]. A car can't pass the car ahead; if it catches up, it slows down and they travel together as a fleet (at…

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 26 of 150 · updated 2026-10-12