Fork me on GitHub
摘要: "欢迎fork and star:Nowcoder Repository github" 117. Populating Next Right Pointers in Each Node II 题目 解析 "117. Populating Next Right Pointers in Each No 阅读全文
posted @ 2018-01-06 18:38 ranjiewen 阅读(208) 评论(0) 推荐(0) 编辑
摘要: "欢迎fork and star:Nowcoder Repository github" 116. Populating Next Right Pointers in Each Node 题目 解析 使用层次遍历,每一层从左到右串接起来就行,每层最后一个元素next置NULL即可! 题目来源 "11 阅读全文
posted @ 2018-01-06 18:35 ranjiewen 阅读(176) 评论(0) 推荐(0) 编辑
摘要: "欢迎fork and star:Nowcoder Repository github" 119. Pascal's Triangle II 题目 解析 注意使用逆序累计 第二种方法可以利用数学的递推关系来完成:If anyone has ever learnt the mathematics eq 阅读全文
posted @ 2018-01-06 14:14 ranjiewen 阅读(213) 评论(0) 推荐(0) 编辑