Binary Tree Paths

Given a binary tree, return all root-to-leaf paths.

样例

Given the following binary tree:

All root-to-leaf paths are:

 

 

发表评论