comefrom: <qiyuangong>695_Max_Area_of_Island_1.py
code: def dfs( grid, i, j):
      stack = [(i, j)]
      area = 0
      while stack:
          r, c = stack.pop(-1)
          area += 1
          for nr, nc in ((r - 1, c), (r + 1, c), (r, c - 1), (r, c + 1)):
              if (0 <= nr < len(grid) and
                      0 <= nc < len(grid[0]) and grid[nr][nc]):
                  stack.append((nr, nc))
                  grid[nr][nc] = 0
      return area
masked: def sample_funcname ( var_0 , var_1 , var_2 ) :
      var_3 = [ ( var_1 , var_2 ) ]
      var_5 = 0
      while var_3 :
          var_7 , var_9 = var_3.pop ( - 1 )
          var_5 += 1
          for var_10 , var_11 in ( ( var_7 - 1 , var_9 ) , ( var_7 + 1 , var_9 ) , ( var_7 , var_9 - 1 ) , ( var_7 , var_9 + 1 ) ) :
              if ( 0 <= var_10 < len ( var_0 ) and 0 <= var_11 < len ( var_0 [ 0 ] ) and var_0 [ var_10 ] [ var_11 ] ) :
                  var_3.append ( ( var_10 , var_11 ) )
                  var_0 [ var_10 ] [ var_11 ] = 0
      return var_5
  