Commit cab21d30 by BellCodeEditor

save project

parent 85a642b5
Showing with 1 additions and 1 deletions
a=[1,2,3,4,5,6,7,8,9,0] a=[1,2,3,4,5,6,7,8,9,0]
def h(n): def h(n):
l=0 l=0
r=len(a) r=len(a)-1
while l<=r: while l<=r:
mid=(l+r)//2 mid=(l+r)//2
if a[mid]==n: if a[mid]==n:
......
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