Practice›LeetCode›LeetCode 08xxLeetCode 834: Sum of Distances in TreeA clear explanation of the Sum of Distances in Tree problem using tree DP, subtree sizes, and rerooting.