Search⌘ K
AI Features

Tree Diameter

Tree Diameter asks you to examine an undirected tree given as edge pairs and return the number of edges on the longest path between any two nodes.

Statement

Given an undirected tree with n ...