A grid has some cells marked X and some marked Y. How close is the nearest X–Y pair — first in an open grid, then with obstacles? A Waymo phone screen (also asked as "closest apartment to a bus stop").
A grid has some cells marked X and some marked Y. How close is the nearest X–Y pair — first in an open grid, then with obstacles? A Waymo phone screen (also asked as "closest apartment to a bus stop").
The discussion opens with the full question.