Search⌘ K
AI Features

Find Minimum Diameter After Merging Two Trees

Find Minimum Diameter After Merging Two Trees asks you to connect one node from each of two given trees with a single edge, then return the smallest possible diameter of the combined tree.

Statement

You are given two undirected trees: one with ...