The Halfway Point 迭代中点
Cleveland held a 12-point advantage at the halfway point.
克利夫兰在半程时拥有12分的优势。
This is the halfway point of baby too.
婴儿也已经度过了一半的过程。
This is the halfway point of baby, too.
婴儿也已经度过了一半的过程。
First, it's pointing to the beginning of the list, which initially might be down here at but after a while, might be part way through. And to that, I simply add a halfway point, and then I check.
列表中间的一个部分了,然后我求出列表的中值点,然后看看该点的值是不是等于目标值,如果是的话就完成了,如果不是的话,如果中位值大于我要找的目标值。
应用推荐