5 views
# LC6310 Number of Islands **Idea.** flood fill per unvisited land. **How I'd explain it in an interview** - Restate the problem and confirm input sizes - Give the brute force, then the key observation: flood fill per unvisited land - Code it, then dry-run a small example - Finish with time/space complexity and edge cases *Disclosure: I work on [https://www.linkjob.ai/](https://www.linkjob.ai/) — a tool for practicing coding interviews. These are my own study notes.*