摘要: Same TreeGiven 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.======================================================================Easy recursive solution , accepted with 阅读全文
posted @ 2013-09-26 16:03 昱铭 阅读(132) 评论(0) 推荐(0)
摘要: Maximum Depth of Binary TreeGiven 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 leaf node.===========================================================================Aparently, recursive solution came into 阅读全文
posted @ 2013-09-25 10:33 昱铭 阅读(266) 评论(0) 推荐(0)