A city grid has open roads, blocked roads and DashMarts. For each customer location, find how far it is to the nearest DashMart.
A city grid has open roads, blocked roads and DashMarts. For each customer location, find how far it is to the nearest DashMart.
Opens with the full question.