re: Amazon's Interview Question: Count Island VIEW POST

VIEW FULL DISCUSSION
 

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

code of conduct - report abuse