Leetcode 0827. Making A Large Island
Posted on Sat 25 January 2025 in Leetcode • Tagged with dfs-bfs-grid
Question Link : https://leetcode.com/problems/making-a-large-island/
Difficulty: Hard
Premium: False
Question
You are given an n x n binary matrix grid. You are allowed to change at most one 0 to be 1. Return the size of the largest island in grid after applying this operation. An island is …
Continue reading