Binary search: Difference between revisions

No edit summary
Line 1,823:
 
'''Recursive'''
{{incorrect|raises an error if given empty list}}
<lang python>def binary_search(l, value, low = 0, high = -1):
if(high == -1): high = len(l)-1
Anonymous user