original_docstring: 
          Do not return anything, modify rooms in-place instead.
          
docstring: Do not return anything, modify rooms in-place instead.
docstring_tokens: Do not return anything modify rooms in - place instead .
code: def wallsAndGates(self, rooms: List[List[int]]) -> None:
          """
          Do not return anything, modify rooms in-place instead.
          """
          if not rooms: return
          m, n = len(rooms), len(rooms[0])
          q = collections.deque()
          dirs = [(0,1), (0,-1), (1,0), (-1,0)]
          
          for i in range(m):
              for j in range(n):
                  if rooms[i][j] == 0:
                      q.append((i,j))
                      
          while q:
              x, y = q.popleft()
              for dx, dy in dirs:
                  nx = x + dx
                  ny = y + dy                                
                  if 0<=nx<m and 0<=ny<n and rooms[nx][ny] == 2147483647 and rooms[x][y]<rooms[nx][ny]+1: 
                      rooms[nx][ny] = rooms[x][y]+1
                      q.append((nx,ny))
code_tokens: def wallsAndGates ( self , rooms : List [ List [ int ] ] ) -> None : if not rooms : return m , n = len ( rooms ) , len ( rooms [ 0 ] ) q = collections . deque ( ) dirs = [ ( 0 , 1 ) , ( 0 , - 1 ) , ( 1 , 0 ) , ( - 1 , 0 ) ] for i in range ( m ) : for j in range ( n ) : if rooms [ i ] [ j ] == 0 : q . append ( ( i , j ) ) while q : x , y = q . popleft ( ) for dx , dy in dirs : nx = x + dx ny = y + dy if 0 <= nx < m and 0 <= ny < n and rooms [ nx ] [ ny ] == 2147483647 and rooms [ x ] [ y ] < rooms [ nx ] [ ny ] + 1 : rooms [ nx ] [ ny ] = rooms [ x ] [ y ] + 1 q . append ( ( nx , ny ) )
short_docstring: Do not return anything, modify rooms in-place instead.
short_docstring_tokens: Do not return anything modify rooms in - place instead .
comment: """
          Do not return anything, modify rooms in-place instead.
          """