title: How can I remove a certain number of digits in a number so the number obtained is minimal?
body: <p>How can I remove a certain number of digits in a number so the number obtained is minimal?</p>
  
  <p>Specifically, I want to write a function <code>int remove_digits(int large, int num_digits_to_remove)</code> such that:</p>
  
  <ol>
  <li>Any <code>num_digits_to_remove</code> digits are removed from <code>large</code> as though removing characters from its string representation</li>
  <li>The number that is returned has the lowest possible value from removing digits as in step 1</li>
  </ol>
  
  <p>For example, removing 4 digits from <code>69469813</code> would give <code>4613</code></p>
  
  <p>I would prefer answers written in C.</p>