Now to make that happen, it's not adiabatic, right. If I wanted to do that, I'd need a heating element or something to cool, so I could make that temperature change happen, right.
要实现这点,它就不会是绝热的,对吧,如果我想做到这点,我需要一个加热元件或什么制冷的东西,这样我才能让温度变化。
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的话,也就是说数组中的元素小于等于,我对这两个元素进行比较,然后返回结果就可以了,否则的话,我们就去寻找中值点,注意它是怎么实现的,首先这个指向一个列表的开头。
应用推荐