AlgoMaster Logo

924. Minimize Malware Spread

graph=[[1,1,0],[1,1,0],[0,0,1]],initial=[0,1]
0 / 9
Network Graph012Infected Nodes: [0, 1]Union-Find ComponentsLegend:HealthyInfectedAnalyzingBest Choice
algomaster.io
Step:Given a network of 3 nodes with 2 initially infected nodes: [0, 1]. Find which infected node to remove to minimize total infection spread.