摘要: Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST. According to the definition of LCA on Wikipedia 阅读全文
posted @ 2016-06-08 23:48 新一代的天皇巨星 阅读(188) 评论(0) 推荐(0)
摘要: 200. Number of Islands Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and is forme 阅读全文
posted @ 2016-06-08 12:08 新一代的天皇巨星 阅读(170) 评论(0) 推荐(0)