Binary Tree Path Sum II
Given a binary tree:
1
/ \
2 3
/ /
4 2
for target = 6, return
[
[2, 4],
[1, 3, 2]
]Basic Idea:
Java Code:
Python Code:
Update
Update: 最直观的解
Last updated