In other words it doesn't just return when it finds one, it's going to run through all of them. All right?
但是它将会继续运行,换句话来说当它找到一个结果时,它不会立刻返回结果它会先遍历所有的内容?
Do one comparison and return one of two possible orders on it, but I need to decide that.
虽然可以做一次比较,然后返回两个可能的顺序中的一个为结果,但是这需要我来做决定。
If we add one to the return, then you've got a number that's never negative and we can then use geometric returns.
然后加上1,你永远也得不到一个负数,然后我们对这个值求几何平均
The statesmen in the Aristotelian sense is the one who seeks to return as quickly and efficiently as possible to the normal situation.
亚里士多德式的政治家,是一位寻求尽可能快速且有效,回复到正常情势的政治家。
And one theme we're going to return to is— this is half the brain.
我们要再次重申的一点便是,这是半个大脑
when Peter, on one of his trips, has to return back to Russia.
回到俄国时密谋反抗他的父亲
D-A-V-I-D Well, if I've got a five-letter word like D-A-V-I-D, well, that's like five bytes and yet we only have the ability thus far in this class to return one thing at a time I can't return five bytes to you, but wait a minute, those bytes by nature of a computer are just stored in RAM.
好的,如果有5个字母的单词,如,那是5个字节,我们只能返回一个东西,而不能返回5个字节,等一下,这些字节被计算机本能地,存储在内存中。
I want to put down on this axis the return on the stock market and on this axis I want to put the return on one company, let's say Microsoft.
我把这个轴作为股票市场的收益,这个轴作为某个公司的收益,比如说微软
And one claim, which we're going to return to briefly next class when we talk about language, is that there's a very, very big difference between a creature that doesn't have language and a creature that does.
我们下节课讲述语言时,会简单地讲述一个观点,也就是在未掌握语言的生物,与掌握语言的生物之间,存在着巨大的差异
And I think in the polar one I said, if, what did I do there, I said, yeah, again if the x and y are greater than the other one, I'm going to return them to it.
然后我要返回一些值,我认为在极坐标的形式下我说过,如果,我在这里做了什么来着,我说过,对,再说一次,如果x和y坐标。
X I'm passing an X, and yet I'm also assigning the return value to X. So just intuitively what's going to be the effect of this one line of code?
我传一个X,之后我把返回值赋值给,很明显,这一行代码,将会产生什么作用?
So this line or these lines of code up here are arguably constant time steps to say if N is less than 2 in return, that it will always take maybe one step, maybe two steps, some number of fixed CPU cycles.
如果N小于2并返回,那么这些行所对应的代码,通常只需要执行一步,或者两步,具体数字与CPU周期有关。
应用推荐