Understanding binary search
Too Long; Didn't Read
Suppose, <code class="markup--code markup--p-code">numbers</code> is a <code class="markup--code markup--p-code">list/array</code> of integers that are sorted in nondecreasing order. We need to determine whether an element <code class="markup--code markup--p-code">x</code> is present in the <code class="markup--code markup--p-code">list</code> or not. There are <code class="markup--code markup--p-code">n</code> elements in the <code class="markup--code markup--p-code">list</code> .