About this puzzle

Refuel — practice the decision, scored against the optimum

What does the Refuel puzzle teach?

Cross the distance in the fewest fill-ups: don't stop at the first low-tank station — bank the biggest refills you've already passed. That's the heap greedy.

Why do interviews ask about this?

Minimum refueling stops (LeetCode 871) — the max-heap greedy where you retroactively bank the largest passed refill instead of stopping at the first low-tank station.

How is it scored?

The engine computes the provably-optimal answer for the exact instance you played (dynamic programming, shortest-path, or exhaustive search — never a heuristic) and scores your attempt as a percentage of it. No login needed to see your score.