摘要: 人数 行数 7 5 1->3 5->2 10->8 3->4 4->5 最长链是1->3->4->5->2 题目解析 透过现象看本质:就是list转成tree, 计算tree的最大深度 难点是 list转成tree如何动态添加节点 参考: https://blog.csdn.net/xcymorni 阅读全文
posted @ 2020-04-25 12:42 funny_coding 阅读(291) 评论(0) 推荐(0) 编辑
build beautiful things, share happiness