Given the root of a binary tree, return the length of the diameter of the tree: the number of edges on the longest path between any two nodes. This path may or may not pass through root.
Input / output
root: TreeNode (JSON test fixture is a LeetCode-style level-order array, null marks a missing child)int — the number of edges on the longest pathCan you compute the diameter in a single O(n) pass instead of recomputing height at every node?