下列二分枚举算法中,{ }处应该填入的程序是({}不算做程序的一部分)
def binary_search(arr, x):
low = 0
high = len(arr) - 1
while low <= high:
{
}
return -1
下列二分枚举算法中,{ }处应该填入的程序是({}不算做程序的一部分)
def binary_search(arr, x):
low = 0
high = len(arr) - 1
while low <= high:
{
}
return -1