Skip to content

Commit b0bf147

Browse files
Update binary_search.py
1 parent ddecd4d commit b0bf147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Chapter03/binary_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
def binary_search(arr, start, end, key):
22
while start <= end:
3-
mid = start + (end - start)/2)
3+
mid = start + (end - start)/2
44
if arr[mid] == key:
55
return mid
66
elif arr[mid] < key:

0 commit comments

Comments
 (0)