QUIZ: LC_W09
◀ BACK WEEK 9
7 QUESTIONS
Q1 1 / 7 medium
Number of Islands

Given a 2D grid of '1's (land) and '0's (water), count the number of islands. An island is surrounded by water and formed by connecting adjacent land cells horizontally or vertically.

What is the key technique required?