We Need More Bosses
HardRating 2100CodeforcesGraph Theory (MST, SCC, Bridges)
Approach hintTry it first, then revealHide
Contract every 2-edge-connected component into one vertex; the bridges then form a tree. The answer is the diameter of this bridge tree, found with two BFS passes.