Count Sub Islands
Count islands in the second grid that are entirely made of land cells of the first grid. The visual places both grids side by side, flood-fills each island, and marks cells that fall outside the first grid.
Count islands in the second grid that are entirely made of land cells of the first grid. The visual places both grids side by side, flood-fills each island, and marks cells that fall outside the first grid.