Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% off
Back to Discussions⭐ Join thousands of engineers in our community
Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edg...
1 like
0 comments
Share
Join the Discussion
Create a free account to read "Amazon" and join our community of engineers sharing interview experiences.
Create an account to view this post
No credit card required.
Access full discussion posts and insights
Connect with other engineers on their job search
Share your own experiences and questions