So, as the gentleman back there said, if I'm searching it once, just use the linear search.
如果我就搜索一次,就用线性搜索吧,另一方面。
If it's at that point, I'm done, if not, if it's greater than the value I'm looking for, I either take one half or the other.
那么我就取左边,否则的话就取右边,好,你们可以明白,我们一次就可以缩小问题规模的一半了吧。
应用推荐