摘要:
Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1解题思路:方法一: recursion 交换当前左右节点,并直接调用递归即可方... 阅读全文
posted @ 2015-09-14 03:02
茜茜的技术空间
阅读(117)
评论(0)
推荐(0)
摘要:
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 an... 阅读全文
posted @ 2015-09-14 02:07
茜茜的技术空间
阅读(108)
评论(0)
推荐(0)
摘要:
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 the farthest le... 阅读全文
posted @ 2015-09-14 00:40
茜茜的技术空间
阅读(139)
评论(0)
推荐(0)

浙公网安备 33010602011771号