---
title: "Discussion on \"How to find the number of islands in a matrix\" | Hashnode"
description: "Discussion on \"How to find the number of islands in a matrix\". Given a boolean 2D matrix, find the number of islands. A group of connected 1s forms an island."
url: "https://hashnode.com/posts/how-to-find-the-number-of-islands-in-a-matrix/616db1485d62b71524dd0a0f"
---

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

Discussion

# [How to find the number of islands in a matrix](https://blog.iamvarshith.dev/how-to-find-the-number-of-islands-in-a-matrix?utm_source=hashnode&utm_medium=feed)

Given a boolean 2D matrix, find the number of islands. A group of connected 1s forms an island.

Oct 18, 2021 · 5 min read · blog.iamvarshith.dev  
Read the article

-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#interview](https://hashnode.com/tag/interview)
-   [#problem-solving-skills](https://hashnode.com/tag/problem-solving-skills)

## Written by

[Muthya Varshith Vankamamidi](https://hashnode.com/@iamvarshith)

@iamvarshith · Hyderabad, India

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

Software Devloper

I am an undergraduate computer science student from NIIT University working as a freelancer seeking work as Software Engineer. Where I can apply my experience and knowledge to the fullest extent at the same time improve my skills.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
