MCPcopy Create free account
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / BinarySearch.py

File BinarySearch.py

BinarySearch.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# 实现一个二分查找
2# 输入:一个顺序list
3# 输出: 待查找的元素的位置
4def binarySearch(alist, item):

Callers

nothing calls this directly

Calls 1

binarySearchFunction · 0.85

Tested by

no test coverage detected