[LeetCode]Number of Islands II
2015-12-25
阅读 3 分钟
6kA 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which turns the water at position (row, col) into a land. Given a list of positions to operate, count the number of islands after each addLand operation. An island is surrounded by water and ...