← CodeNation questions

Minimum time for virus to infect graph

Filed under CodeNation

The question

Given an undirected graph where edges represent travel times between cities, find the minimum time for the entire graph to be infected if node 0 is infected.

No write-up yet. Related questions below have one.

Related CodeNation questions

Collected from public candidate posts and coding forums. Updated Nov 2026.