Is Zero less than or equal to zero?
<p>Assume I get a value <code>i=0;</code><br/>
Then will the following variable <code>leftsmaller</code> be <code>true</code>?</p>

<pre><code> while(i&lt;=0 || arr[i]&lt;arr[j])
    leftsmaller = true;
</code></pre>