摘要: 题目: 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 adj 阅读全文
posted @ 2017-07-26 16:35 荒野第一快递员 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 题目: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 阅读全文
posted @ 2017-07-26 14:14 荒野第一快递员 阅读(287) 评论(0) 推荐(0) 编辑