Triameter of a Tree
CodeChefOpen on judge ↗
The Diameter of a Tree is defined longest path in a Tree between any two nodes. The Triameter of the Tree is defined the longest path of made by any 3 nodes of Tree. Print the number of edges in the Triameter of the Tree. Note : The nodes that would be considered in the path of Trimeter would be nodes that we would lie between any 2 nodoes of Trimeter. ###Input: - First line will cont
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start