2018年8月16日

python一个关于二分法查找元素的实现

摘要: # coding=utf-8import timedef find_ele(alist, ele): if ele < alist[0] or ele > alist[len(alist) - 1]: print("%d not in alist" % ele) return last_index 阅读全文

posted @ 2018-08-16 21:45 Ssssantiago 阅读(415) 评论(0) 推荐(0)

导航