摘要: Given a boolean 2D matrix, 0 is represented as the sea, 1 is represented as the island. If two 1 is adjacent, we consider them in the same island. We 阅读全文
posted @ 2017-10-27 14:21 jasminemzy 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'. A region is captured by flipping all 'O''s into 'X''s in that surround 阅读全文
posted @ 2017-10-27 06:03 jasminemzy 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Check whether the original sequence org can be uniquely reconstructed from the sequences in seqs. The org sequence is a permutation of the integers fr 阅读全文
posted @ 2017-10-27 04:49 jasminemzy 阅读(242) 评论(0) 推荐(0) 编辑