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: https://leetcode.com/problems/number-of-islands/description/
Answer

Interview Answer

1 Answer

0

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.