Another multi-source BFS problem that reinforces the pattern of starting from all targets simultaneously to compute shortest distances.
Enable JavaScript for the full StreamPrep guide.