摘要:
Binary Tree Level Order Traversal:Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree {3,9,20,#,#,15,7}, ... 阅读全文
posted @ 2016-03-01 19:19
Lewisr
阅读(140)
评论(0)
推荐(0)
摘要:
Same Tree:Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value. 题意:判断两棵... 阅读全文
posted @ 2016-03-01 19:15
Lewisr
阅读(121)
评论(0)
推荐(0)
摘要:
Symmetric Tree:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3 But th... 阅读全文
posted @ 2016-03-01 19:04
Lewisr
阅读(129)
评论(0)
推荐(0)
摘要:
Balanced Binary Tree:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every... 阅读全文
posted @ 2016-03-01 18:58
Lewisr
阅读(134)
评论(0)
推荐(0)

浙公网安备 33010602011771号