Google·Software Engineer·Onsite - Coding / Algorithms
- Given a grid where some cells are 'sources' (rotten oranges, taxis, or gates), compute the distance from every other cell to the nearest source.
- Follow-up: how would you handle sources that move over time, where their positions change dynamically?
“Classic multi-source BFS setup.”