Commit 5a38dc6e by BellCodeEditor

save project

parent 804beb2e
Showing with 1 additions and 1 deletions
...@@ -14,7 +14,7 @@ def binary_search(alist,num): ...@@ -14,7 +14,7 @@ def binary_search(alist,num):
guess = alist[mid] guess = alist[mid]
if guess == num: if guess == num:
return mid return mid
elif guess < num: elif guess < num·:
low = mid+1 low = mid+1
else: else:
high = mid -1 high = mid -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment