← 返回 meta 的题目列表Maximize Island Size by Flipping One Water Cell
类型:online_judge
meta
Given a 2D grid of 0s and 1s, where 0 represents water and 1 represents land. Change at most one 0 to 1 to maximize the island size. Return the largest possible island size. The grid size does not exceed 50.
Example
Input
[[1, 0], [0, 1]]