题目
Solution
The longest path through that node equals:
left subtree depth + right subtree depth.
the longest path must pass through some node as a highest point.
Java
| |
The longest path through that node equals:
left subtree depth + right subtree depth.
the longest path must pass through some node as a highest point.
| |