549 Binary Tree Longest Consecutive Sequence II
549. Binary Tree Longest Consecutive Sequence II
1. Question
Input:
1
/ \
2 3
Output:
2
Explanation:
The longest consecutive path is [1, 2] or [2, 1].2. Implementation
3. Time & Space Complexity
Last updated