Commit 0e5af52d by BellCodeEditor

save project

parent e7374c96
Showing with 5 additions and 2 deletions
...@@ -13,4 +13,7 @@ while low <= hight: ...@@ -13,4 +13,7 @@ while low <= hight:
elif guess_num<bingo_num: elif guess_num<bingo_num:
low=mid+1 low=mid+1
elif guess_num<bingo_num: elif guess_num<bingo_num:
hight=mid-1 hight=mid-1
\ No newline at end of file def binary_search(alist,num):
low=0
hight=len(alist)-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