committed by
Jonathan Graham
parent
14260bb4b3
commit
80365163de
@ -10,7 +10,7 @@ The smaller part are sorted using Insertion Sort and is later merged together us
|
|||||||
|
|
||||||
A quick implementation in Python:
|
A quick implementation in Python:
|
||||||
|
|
||||||
```
|
```py
|
||||||
def binary_search(the_array, item, start, end):
|
def binary_search(the_array, item, start, end):
|
||||||
if start == end:
|
if start == end:
|
||||||
if the_array[start] > item:
|
if the_array[start] > item:
|
||||||
|
Reference in New Issue
Block a user