Problem 1579 · Hard

Remove Max Number of Edges to Keep Graph Fully Traversable

Keep the shared edges first, then add private edges only where they join two groups for Alice or for Bob.

Open the interactive visualisation