&gt; throw out the min and max and take the median of the remaining three numbers.<p>Do you really mean <i>median</i> here? Or did you intend to write <i>mean</i>?<p>If you&#x27;re planning to take median, there no need to throw out the min &amp; max first.