摘要:
Question: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 fa... 阅读全文
posted @ 2015-09-20 14:09
江湖小妞
阅读(133)
评论(0)
推荐(0)
摘要:
Question:Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to thedefinition of LCA on Wi... 阅读全文
posted @ 2015-09-20 10:47
江湖小妞
阅读(197)
评论(0)
推荐(0)

浙公网安备 33010602011771号