Commit e2172c9c by BellCodeEditor

save project

parent a1bd4b47
Showing with 6 additions and 5 deletions
......@@ -7,12 +7,12 @@ while low<=high:
mid=(low+high)//2
a=num_list[mid]
if a == num:
print(mid)
print("111111111",mid)
break
elif a<=num:
low=num+1
elif:
high+mid-1
elif a<num:
low=mid+1
elif a>num:
high=mid-1
\ No newline at end of file
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