For each initially infected node, try remove it and then count the total number of infected nodes through BFS.
Pick up the solution that if removing such a node will yield the minimum number of infected nodes.
|
For each initially infected node, try remove it and then count the total number of infected nodes through BFS.
Pick up the solution that if removing such a node will yield the minimum number of infected nodes.
|