You ask two, I answer two. Spring season welcomes back the swallows.
你问二,我对二。春天春风燕儿飞。
There are two reasons I only considered answer votes: there are far more question votes than answer votes, and question votes follow a similar pattern to answer votes.
我只针对回答的投票有两个原因:一是给提问的投票比回答的投票多得多,二是因为提问的投票和回答的投票非常类似。
I pull the plastic off two microwave dinners and refuse to answer.
我扯下微波炉做的两份便餐上的塑料,没有回答他的话。
Two: check to see if this is the answer, if this is the thing I'm looking for.
是否是我们要找的元素,接着,如果不是。
There are two possibilities. If the answer is yes, then I'm still looking for the answer, what do I want to do? Well, I don't have to do anything other than change the counter.
这就是一个测试,有两种可能的结果,如果结果为是的话,然后我就要继续找寻目标数,我该怎么做呢?好。
It says, well I'm going to print out first and last just so you can see it, and then I say, gee 2 if last minus first is less than 2, that is, if there's no more than two elements left in the list, then I can just check those two elements and return the answer.
然后它计算了尾点和开始点的差,如果小于2的话,也就是说数组中的元素小于等于,我对这两个元素进行比较,然后返回结果就可以了,否则的话,我们就去寻找中值点,注意它是怎么实现的,首先这个指向一个列表的开头。
应用推荐