package
0.0.0-20241209140624-9fce2a725d55
Repository: https://github.com/elven9/my-leetcode.git
Documentation: pkg.go.dev
# README
Number of Islands
Solution Idx | Time Complexity | Space Complexity | Comment |
---|---|---|---|
1 | O(m*n*m*n) | O(m*n) | DFS on each discoverd land if it's unvisited |