下面是一段用python实现的二分法查找代码
#encoding=utf-8
import sys
def search2(a,m):
low = 0
high = len(a) – 1
while low
A programmer’s note boke for work and life
下面是一段用python实现的二分法查找代码
#encoding=utf-8
import sys
def search2(a,m):
low = 0
high = len(a) – 1
while low