Quantcast
Channel: January 2015 – Program Creek
Viewing all articles
Browse latest Browse all 6

LeetCode – Number of Islands II (Java)

$
0
0
A 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 ... Read more

Viewing all articles
Browse latest Browse all 6

Trending Articles