二叉树
i-Blue
抱平常心走平常路
展开
-
222. Count Complete Tree Nodes
题: Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia: In a complete binary tree every level, except possibly the last, is completely fil原创 2016-09-06 16:29:20 · 230 阅读 · 0 评论 -
二叉树的前序、中序、后序遍历—迭代方法
leetcode上的相关题目: 前序:https://leetcode.com/problems/binary-tree-preorder-traversal/?tab=Description 中序:https://leetcode.com/problems/binary-tree-inorder-traversal/?tab=Description 后序:https://leetcode.原创 2017-02-25 11:35:46 · 9827 阅读 · 0 评论