โ† OYO questions

Biggest Island in 2D Matrix

Filed under OYO

Given a 2D matrix of 1s (land) and 0s (water), where connected 1s (horizontally and vertically) form islands, return the size of the biggest island. Implement both recursive and iterative approaches.

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 OYO questions

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