摘要:
The problem:Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binar... 阅读全文
posted @ 2015-01-11 12:15
airforce
阅读(161)
评论(0)
推荐(0)
摘要:
The problem:Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retu... 阅读全文
posted @ 2015-01-11 11:07
airforce
阅读(174)
评论(0)
推荐(0)
摘要:
The problem:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retur... 阅读全文
posted @ 2015-01-11 09:50
airforce
阅读(150)
评论(0)
推荐(0)
摘要:
The problem:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3retur... 阅读全文
posted @ 2015-01-11 09:49
airforce
阅读(171)
评论(0)
推荐(0)
摘要:
The problem:Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return... 阅读全文
posted @ 2015-01-11 04:15
airforce
阅读(132)
评论(0)
推荐(0)
摘要:
The problem:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: ... 阅读全文
posted @ 2015-01-11 03:36
airforce
阅读(169)
评论(0)
推荐(0)
摘要:
The problem: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 ... 阅读全文
posted @ 2015-01-11 02:03
airforce
阅读(136)
评论(0)
推荐(0)
摘要:
The problem 1:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to t... 阅读全文
posted @ 2015-01-11 01:31
airforce
阅读(147)
评论(0)
推荐(0)
摘要:
The problem:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree,... 阅读全文
posted @ 2015-01-11 00:02
airforce
阅读(170)
评论(0)
推荐(0)

浙公网安备 33010602011771号