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 58bf5c9 commit d29562dCopy full SHA for d29562d
Binary_search.py
@@ -3,7 +3,7 @@
3
def binarySearch(arr, l, r, x):
4
while l <= r:
5
6
- mid = l + (r - l) / 2; #extracting the middle element of the array
+ mid = l + (r - l) / 2; #extracting the middle element from the array
7
8
# Check if x is present at mid
9
if arr[mid] == x:
0 commit comments