上一页 1 ··· 13 14 15 16 17
摘要: Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in 阅读全文
posted @ 2016-11-18 14:35 lettuan 阅读(143) 评论(0) 推荐(0) 编辑
摘要: There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it cost 阅读全文
posted @ 2016-11-18 00:28 lettuan 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Keys: 在一个list中根据index可以同时去掉多个element, see L21 阅读全文
posted @ 2016-11-17 08:53 lettuan 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 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 formed by connecting adjacen 阅读全文
posted @ 2016-11-17 08:44 lettuan 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17