DEV Community

Discussion on: Amazon's Interview Question: Count Island

Collapse
 
sndp487 profile image
Sandeep

Tbh, this is a very basic question, solvable in linear time with graph traversal algorithms like BFS/DFS.