摘要: Lowest Common Ancestor of a Binary Search TreeGiven a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.Ac... 阅读全文
posted @ 2015-07-11 16:46 陆草纯 阅读(1275) 评论(0) 推荐(0) 编辑
摘要: Rectangle AreaFind the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right co... 阅读全文
posted @ 2015-07-11 09:57 陆草纯 阅读(531) 评论(0) 推荐(0) 编辑