Given a binary tree, return all paths from the root to leaves.
For example, given the tree
1
/ \
2 3
/ \
4 5
it should return [[1, 2], [1, 3, 4], [1, 3, 5]].
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Given a binary tree, return all paths from the root to leaves.
For example, given the tree
1
/ \
2 3
/ \
4 5
it should return [[1, 2], [1, 3, 4], [1, 3, 5]].