Commit 6d86d9b3 by BellCodeEditor

auto save

parent 4ba8e2f6
Showing with 1 additions and 1 deletions
...@@ -4,7 +4,7 @@ num = 20 ...@@ -4,7 +4,7 @@ num = 20
low = 0 low = 0
high = len(num_list )-1 high = len(num_list )-1
while True: while True:
if high<=num: if high>=low:
mid = (low+high)//2 mid = (low+high)//2
guess = num_list[mid] guess = num_list[mid]
if guess == num: if guess == num:
......
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