Day 21 of LeetCode
Documenting LeetCode solving.
Start to practice Go fluency.
Q62
200. Number of Islands
Medium. Graphs
func numIslands(grid [][]byte) int {
res := 0
m, n := len(grid), len(grid[0])
var dfs func(i, j int)
dfs = func(i, j int) {
...
evelynsjourney.hashnode.dev2 min read