摘要: def binary_search(data,y,low=0,high=None): high = high if high is not None else len(data) while(low <= high): mid = (low+high)//2 if y==data[mid]: res 阅读全文
posted @ 2017-09-25 18:56 Teddykin 阅读(124) 评论(0) 推荐(0)