Minimum Time to Infect a Network

Asked at OpenAI · Coding Questions · Difficulty: Medium

You are given an undirected graph representing a network. Nodes are labeled from `0` to `n - 1`. Initially, some nodes are infected.

Loading the problem…