Chatham Financial Interview Question: Develop an algorithm to count... | Glassdoor

Interview Question

Software Developer Interview Kennett Square, PA

Develop an algorithm to count islands in a grid. The

  question can be found on leetcode:

Interview Answer

1 Answer


Iterate through the grid and when you find an island, perform a DFS for all connected islands.

Interview Candidate on Nov 14, 2017

Add Answers or Comments

To comment on this, Sign In or Sign Up.