Recursive Grid DFS
- Number of Islands (LeetCode 200) Number of Islands (LeetCode 200) in Java with recursive DFS flood fill: why visited is never un-marked, Θ(mn) complexity, and the StackOverflowError risk.
- Flood Fill (LeetCode 733) Flood Fill (LeetCode 733) in Java: how the recursion works, why it is a depth-first search, why recoloring replaces a visited array, and Θ(mn) complexity.