Diameter Binary Tree

Given the root of a binary tree, return the length of the diameter of the tree. The diameter is the longest path between any two nodes. This path may or may not pass through the root.

Examples
Input: [1,2,3,4,5]
Output: 0
Hints

Diameter Binary Tree

Given the root of a binary tree, return the length of the diameter of the tree. The diameter is the longest path between any two nodes. This path may or may not pass through the root.