DoorDashCoding·60 minMembers
Code Craft: Nearest Destination on 2D Grid (Multi-Source BFS)
Members only
Given a 2D grid containing obstacles and DashMart destinations, compute shortest distances to the nearest destination. The output is either a distance grid or one distance per supplied query location....
SWE
bfs
grid
medium
Frequency
Low
Last asked
2026-07-28
Stage
phone-screen
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
