---
title: "Discussion on \"Number of Islands II\" | Hashnode"
description: "Discussion on \"Number of Islands II\". 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 o..."
url: "https://hashnode.com/posts/number-of-islands-ii/67faea8e88967e8771f02fac"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Number of Islands II](https://dynamicprogramming.hashnode.dev/number-of-islands-ii?utm_source=hashnode&utm_medium=feed)

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 o...

Apr 12, 2025 · 5 min read · dynamicprogramming.hashnode.dev  
Read the article

-   [#graph](https://hashnode.com/tag/graph)
-   [#disjoint-set](https://hashnode.com/tag/disjoint-set)
-   [#union-find](https://hashnode.com/tag/union-find)

## Written by

[Abhi](https://hashnode.com/@abhikommen)

@abhikommen

  
[View profile](https://hashnode.com/@abhikommen)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
