← ALL NOTES
Tree

3372. Maximize the Number of Target Nodes After Connecting Trees I

Given two trees (edges1 on n vertices, edges2 on m) and a number k. For each vertex i of the first tree: if you connect it by an edge to any vertex of the second tree, how many vertices (in the…

Loading…