title: "Removing" even numbers from array and moving odd to the front
body: <p>First of all - it's not a homework - I got this question at my last interview and wasn't able to finish it.</p>
  
  <p>So the question was something like: "Given int array k which has length of n, 'remove' all the even numbers and move odd ones to the front". It was worded kinda strange because they said remove but the examples showed that I should just put all odd numbers in front of the array (starting from 0-index) and even numbers can stay in the array (or not - it doesn't matter) after all the odd numbers. 
  Example:</p>
  
  <pre><code>{1, 4, 6, 8, 7, 2} -&gt; {1, 7, whatever}
  {2, 4, 6, 9, 5} -&gt; {9, 5, whatever}
  </code></pre>
  
  <p>I'd like to be as efficient as possible. I couldn't use any additional libraries or temporary arrays.</p>
  
  <p>So far got this but am stuck:</p>
  
  <pre><code>private static void removeEven(int[] k, int n) {
  for (int i = 0; i &lt; n; i++) {
    if (k[i] % 2 == 0) {
      k[i] = // don't know
    }
  }
  </code></pre>