Nearest DashMart
Nearest DashMart
You are given an R × C city grid:
M: a DashMart location; it is traversable..: an open road; it is traversable.#: a blocked road; it is neither traversable nor a ...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
