Commit ee1b191b by BellCodeEditor

auto save

parent 829e251d
Showing with 9 additions and 4 deletions
...@@ -12,6 +12,12 @@ def bs(alist,n): ...@@ -12,6 +12,12 @@ def bs(alist,n):
m=(l+h)//2 m=(l+h)//2
g=alist g=alist
if g ==n: if g ==n:
terurn return m
elif g < b:
def bs(alist,n): l = m+1
\ No newline at end of file else: g > b:
h = m-1
return None
r = bs(alist,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