LeetCode
Binary Tree Longest Consecutive Sequence II
Click
here
for an explanation.