![5+1 points] A city has k hospitals and n houses. Your job is to label each house with the distance to the nearest hospital. Y](https://media.cheggcdn.com/media%2F8f2%2F8f272741-b3fe-4f94-83fc-ef525d3de2a1%2Fphp7fEkiG.png)
5+1 points] A city has k hospitals and n houses. Your job is to label each house with the distance to the nearest hospital. You are given a graph as input. The graph has houses and hospitals as nodes (hospitals are marked with a special label to distinguish them from houses) and edges are put between nodes when there is a road connecting two nodes Assume that each edge has cost 1.
PayPal Gateway not configured
PayPal Gateway not configured