← Zomato questions
CodingReported in a candidate post, Jul 2025

Number-of-islands style problem with alternative approaches

Filed under Zomato

Given a 2D grid of '1' (land) and '0' (water), count the number of islands. An island is a group of land cells connected horizontally or vertically. Analyse time and space complexity and discuss at…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Zomato questions

Collected from public candidate posts and coding forums. Updated Nov 2026.