[LeetCode] 257. Binary Tree Paths 二叉树路径

Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: 1 / \ 2 3 \ 5 All root-to-leaf paths are: ["1->2->5"
posted @ 2015-08-17 22:45  Grandyang  阅读(14370)  评论(5)    收藏  举报
Fork me on GitHub