Grokking Meta Coding Interview
Ask Author
Back to course home

0% completed

Vote For New Content
A lake is a body of water that is surrounded by land.

Mikhail Putilov

Aug 20, 2023

https://www.google.com/search?q=lake&oq=lake - A lake is a body of water that is surrounded by land.

I think the description has a typo: lakes are allowed. Designgurus has even a test case:

[

[0,0,0,0,0],

[0,1,1,1,0],

[0,1,0,1,0],

[0,1,1,1,0],

[0,0,0,0,0]

]

1

0

Comments
Comments
M
Mikhail Putilov2 years ago

After I posted the comment, a simple link to google was stripped out. I just pointed to google's definition of the word "lake".

On this page