title: Python Numpy Track all 0's in an explosive spread
body: <h1>Question:</h1>
  <p>I have a python numpy array list that is of RxC dimensions containing all 1's except one place with a 0.</p>
  <p>Lets say we have 3x4 for now. And I have to track its adjacent from 0 point on to see the explosive spread of it.</p>
  <p>Check input for visual representation of the context.</p>
  <p>Its related to chain reaction spread, But I can't wrap my head around on how i can track it in a 2D array.</p>
  <p>There can be `N' number of zero's and How do I mark all its surrounding Places as 0 as well.</p>
  <h1>What I tried:</h1>
  <p>I tried doing some math over it but works only for one place with this formula</p>
  <p><code>0</code> - position 3,3</p>
  <p>size - 3x4</p>
  <p>3-3, 4-3 = 1 iteration. But its wrong.</p>
  <h1>Input:</h1>
  <p><strong>Starting:</strong></p>
  <pre><code>[
  [1,1,1,1],
  [1,1,1,1],
  [1,1,0,1],
  [1,1,1,1]
  ]
  </code></pre>
  <p><strong>Iteration 1:</strong></p>
  <pre><code>[
  [1,1,1,1],
  [1,0,0,0],
  [1,0,0,0],
  [1,0,0,0]
  ]
  </code></pre>
  <p><strong>Iteration 2:</strong></p>
  <pre><code>[
  [0,0,0,0],
  [0,0,0,0],
  [0,0,0,0],
  [0,0,0,0]
  ]
  </code></pre>
  <h1>Output:</h1>
  <p>The chain reaction spread took 2 iterations to complete.</p>