Problem 3372 · Medium

Maximize the Number of Target Nodes After Connecting Trees I

Connect one node of tree 1 to one node of tree 2 with an edge, then count the nodes each tree-1 node reaches within k steps.

Open the interactive visualisation