摘要: Number of IslandsGiven 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 formed by con... 阅读全文
posted @ 2015-04-11 22:15 陆草纯 阅读(3490) 评论(0) 推荐(0) 编辑
摘要: Binary Tree Right Side ViewGiven a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered fr... 阅读全文
posted @ 2015-04-11 17:44 陆草纯 阅读(1638) 评论(0) 推荐(0) 编辑
摘要: House RobberYou are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint... 阅读全文
posted @ 2015-04-11 12:55 陆草纯 阅读(8623) 评论(0) 推荐(0) 编辑