Lintcode题目总结

方法技巧题:node Complete Binary Tree: http://www.lintcode.com/en/problem/complete-binary-tree/算法 用一个queue进行层序遍历,若是q.front()为NULL,则pop并break,不然将其左右儿子加入queue。而后检查queue中剩余的元素,若是全是NULL则返回true,不然返回false数组 Stack
相关文章
相关标签/搜索