Difficulty: Medium | Category: Graph | Asked at: Google, Meta, Amazon | Platform: Unfoldd Arena
Solve Number of Islands online for free in Python, JavaScript, Java, C++, TypeScript, Go, Rust, PHP, Swift, Kotlin, Dart, Ruby, C, and C#. Practice Medium level coding interview problems with instant test case evaluation and AI-powered analysis.
Keywords: Number of Islands solution, Number of Islands leetcode, Number of Islands python, Number of Islands javascript,Number of Islands java, Number of Islands approach, how to solve Number of Islands, medium coding problems, Graph problems, coding interview preparation, DSA practice free.
Given a 2D grid consisting of
1010An island is defined as a group of connected land cells. Land cells are considered connected if they share a boundary with another land cell. Two land cells are not considered to be part of the same island if they are separated by water cells.
null10Input: {"input_data":[1,2,3]} Output: [1,2,3]
Solve problems, verify your skills, and earn XP.