257. Binary Tree Paths

Given a binary tree, return all root-to-leaf paths.web For example, given the following binary tree:app 1 / \ 2 3 \ 5 All root-to-leaf paths are:svg [「1->2->5」, 「1->3」]ui s思路: 1. 樹。遍歷。這道題,df
相關文章
相關標籤/搜索