So I'm first going to look for something that's not in the list, I'm going to see, is minus 1 in this list, so it's going to be at the far end, and if I do that in the basic case, bam.
如果我试试第一种最基本的方法,噢,一下就完成了对不对?,因为这种方法查了下第一个元素,然后发现目标数比较下,因为目标数小于第一个元素。
So check that I counted right, 1, 2, 3, 4, 5, 6, 7, 8 and 1, 2, 3, 4, 5, 6, 7.
查一下我数的对吗,12345678,和1234567
应用推荐