摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of ston 阅读全文
posted @ 2019-01-28 20:54 JamieLiu 阅读(164) 评论(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 @ 2019-01-28 20:24 JamieLiu 阅读(153) 评论(0) 推荐(0) 编辑