[Leetcode] Populating Next Right Pointers in Each Node
摘要:
因为有了next指针,所以访问过的每一层都是可以遍历的,同样的方式可以得到下一层的情况 1 /** 2 * Definition for binary tree with next pointer. 3 * public class TreeLinkNode { 4 * int val... 阅读全文
posted @ 2015-07-25 11:57 F_G 阅读(212) 评论(0) 推荐(0) 编辑