solulubeta
Sign in
Story Problems / Priority queue
04.04 · Problem

Fewest Petrol Stops

Hard Max-heap: pick the biggest tank you passed Pro

This problem is part of solulu Pro

A car must travel target km along a straight road. It burns 1 litre per km and starts with start_fuel litres. Petrol stations are given as [position, litres] in increasing position; at a station you may take all its…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 49 of 94 · updated 2026-10-12