Number of Islands (Extra) Problem

Number of Islands (Extra) Problem — ExecCode Medium DSA Practice

Solve the Number of Islands (Extra) problem on ExecCode. Free online medium DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.

Problem description

Number of Islands (Extra). DFS flood fill. For Number of Islands (Extra), focus on the exact input variables, return only the requested value, and preserve the required time complexity for the intended pattern.

Examples

Input {"grid": [["1", "1"], ["0", "1"]]}; Output 1

Constraints

1 ≤ n ≤ 10^5

Practice Number of Islands (Extra) free on ExecCode. Browse DSA problems, topic map, and placement guides.