title: How to re-arrange elements of Array after Deleting
body: <p>Recently I was reading a Programming book and found this question:</p>
  
  <p>I have an array :</p>
  
  <pre><code>  array = [2,3,6,7,8,9,33,22];
  </code></pre>
  
  <p>Now, Suppose I have deleted the element at <code>4th</code> position i.e. <code>8</code> .</p>
  
  <p>Now I have to rearrange the array as:</p>
  
  <pre><code>  Newarray = [2,3,6,7,9,33,22];
  </code></pre>
  
  <p>How Can I do this. And I have to also minimize the complexity.</p>
  
  <p><strong>Edit</strong> I have no choice to make another copy of it.I have to only modify it.</p>