Commit b1a2bc47 by BellCodeEditor

save project

parent fcf4b733
Showing with 1 additions and 1 deletions
......@@ -3,7 +3,7 @@ num_list = [1, 3, 5, 8, 11, 15, 17, 18, 20, 21]
low = 0
high = len(num_list)-1
num = 20
while high>low:
while high>=low:
mid = (high+low)//2
guess = num_list[mid]
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