Making A Large Island || Google Question || Code + Explanation

Sdílet
Vložit
  • čas přidán 3. 08. 2021
  • 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 a 4-directionally connected group of 1s.
    Link to challenge : leetcode.com/explore/challeng...

Komentáře • 13