</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

03

:

11

:

06

Get this deal
Back to Dashboard

Fuel Grid Navigation

Hard

Question

You are navigating a grid from a start cell S to a destination cell D. Your vehicle has a fuel tank with a maximum capacity. Moving one cell in any direction (up, down, left, right) costs 1 unit of fuel. Cells labeled G are fuel stations where you can refuel to full capacity. Cells labeled # are walls you cannot enter. ...