What is the goal of Number of Islands?
Practice this question from Number of Islands - Grid DFS Pattern Practice Quiz, with options and an explanation.
Question
What is the goal of Number of Islands?
Option A — Correct answer
Count groups of four-direction connected land cells.
Option B
Sort values and use binary search only
Option C
Count characters in a string
Option D
Reverse a linked list
Explanation
Count groups of four-direction connected land cells.