...

/

Find Minimum Diameter After Merging Two Trees

Find Minimum Diameter After Merging Two Trees

Try to solve the Find Minimum Diameter After Merging Two Trees problem.

Statement

You are given two undirected trees: one with nn nodes labeled from 00 to n1n - 1, and another with mm nodes labeled from 00 to m1m - 1. Their structures are defined by two ...