Making a Large Island by Flipping One Zero
Asked at Meta · Coding Questions · Difficulty: Hard
Given an `n x n` binary matrix, you may change at most one `0` to `1`. Return the maximum possible island area afterward, where an island is a group of `1`s connected 4-directionally.
Loading the problem…