Hello World

摘要: 二分法: n = 100 li = list(range(n)) def bin_search(li,val): low = 0 high = len(li) - 1 while low <= high: mid = (low + high) // 2 if li[mid] == val: retu 阅读全文
posted @ 2017-10-29 01:27 nayike 阅读(82) 评论(0) 推荐(0) 编辑

Hello