当前位置:首页 > IT技术 > 其他好文 > 正文
🌟 知识贝壳App

知识深海,精准拾贝

随时随地查阅各类知识,汉语文化、百科科普、历史人物、语言翻译、专业词典、医学健康、科技文献,海量资源,尽在掌握

知识贝壳APP下载二维码
扫码下载APP

[LeetCode]Binary Tree Maximum Path Sum
2015-02-14 15:02:11

Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example: Given the below binary tree, 1 / 2 3 Return 6. or 2 / -1 Return 2.这道题是返回二叉树中任意两点路径的最大值,只要两点之间路径相同就可以了。那道题 ......

本文摘自 :https://blog.csdn.net/ka

开通会员,享受整站包年服务