Leetcode 200 Number of Islands
https://leetcode.com/problems/number-of-islands/description This is a classic problem that uses BFS as solution. The idea is, we analyze every cell in the grid, if it’s land and we have never visited it before, we find a new island. But we need to keep going from this cell and find all the connected land and mark them as … Continue reading Leetcode 200 Number of Islands
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed