---
title: "Discussion on \"Number of Islands\" | Hashnode"
description: "Discussion on \"Number of Islands\". This is the Problem on Leetcode https://leetcode.com/problems/number-of-islands/description/\nTags > DFS | BFS | Union-find\nThis question asked in the companies like amazon | facebook | google | microsoft | zenefits\nProblem\nGiven an m x n 2D binary gr..."
url: "https://hashnode.com/posts/number-of-islands/6586b4fd2e741a521249a85d"
---

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

Discussion

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

This is the Problem on Leetcode https://leetcode.com/problems/number-of-islands/description/ Tags > DFS | BFS | Union-find This question asked in the companies like amazon | facebook | google | microsoft | zenefits Problem Given an m x n 2D binary gr...

Dec 23, 2023 · 3 min read · anuragk24.hashnode.dev  
Updated Apr 12, 2024  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#graph](https://hashnode.com/tag/graph)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Anurag Kumar](https://hashnode.com/@AnuragK24)

@AnuragK24 · Bangalore, Karnataka

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

SE | Full-stack Developer | Devops | Blogger | MERN stack | Express | React | Redux | MongoDB | Node | JS | Java | Docker | K8s |AWS

Hi, I’m Anurag Kumar, a Software Engineer who loves exploring the latest technologies and sharing insights to help others grow. With a focus on web development and DevOps, I enjoy writing about practical tips, emerging trends, and tools that make developers' lives easier. My goal is to keep my blogs simple, engaging, and useful for everyone—whether you're just starting out or looking to level up your skills. Follow me for friendly and accessible content that bridges the gap between learning and doing! Connect me on twitter : https://x.com/AnuragS41695054

## Responses 1

Markdown supported · ⌘↵ to post

[Bhuwan Kumar Rai](https://hashnode.com/@bhuvi80)

[Dec 23, 2023](https://hashnode.com/posts/number-of-islands/6586b4fd2e741a521249a85d/comment/65872560af481c75b6c94e62)

good solution and explanation :)

[Anurag Kumar](https://hashnode.com/@AnuragK24)

[Dec 24, 2023](https://hashnode.com/posts/number-of-islands/6586b4fd2e741a521249a85d/comment/65872560af481c75b6c94e62#reply-6587ba9f008ff68d64c337b8)

Glad you liked it!
