2020年9月4日

摘要: 地址 https://leetcode-cn.com/problems/binary-tree-paths/ 给定一个二叉树,返回所有从根节点到叶子节点的路径。 说明: 叶子节点是指没有子节点的节点。 示例: 输入: 1 / \ 2 3 \ 5 输出: ["1->2->5", "1->3"] 解释: 阅读全文
posted @ 2020-09-04 10:12 itdef 阅读(154) 评论(0) 推荐(0)

导航