Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
HardLeetCodeGraph Theory (MST, SCC, Bridges)
Approach hintTry it first, then revealHide
Compute the MST weight once. An edge is critical if Kruskal without it gives a larger weight or leaves the graph disconnected; otherwise it is pseudo-critical if Kruskal forced to take it first still reaches the optimum.