We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eecca8d commit 92ad9d8Copy full SHA for 92ad9d8
Chapter10/binary_search_recursive.py
@@ -2,7 +2,7 @@ def binary_search_recursive(ordered_list, first_element_index, last_element_inde
2
if (last_element_index < first_element_index):
3
return None
4
else:
5
- mid_point = first_element_index + ((last_element_index - first_element_index) // 2)
+ mid_point = first_element_index + ((last_element_index - first_element_index) / 2)
6
7
if ordered_list[mid_point] > term:
8
return binary_search_recursive(ordered_list, first_element_index, mid_point-1,term)
0 commit comments