Cause there, you're only dividing the problem in half and half, and half and half, we are doing that here.
因为在那个例子中,只需一次又一次地,对问题进行划分,在这儿我们也是这样做的。
Once each time. Right? I only do one swap potentially, it-- though not one potentially, each time at the end of the loop I do a swap.
每次循环做一次,对么?我其实,就可能做了一次交换,也许并不是可能,每次循环的结束我都得做一次交换。
So they're optional, but they're very, very, very highly encouraged that you do these, because this is going to give you practice for the types of problems that are going to be on the exam.
虽然它们是选做的,但是它们非常非常,非常值得你们去做,因为这对你们来说是一次训练,是用来熟悉考试题型的。
If you get into the fifth century, late in the fifth century, Thucydides in his history has one of his generals speak to his men and say,"Men are the polis."
如果你回到五世纪,在五世纪末,修昔底德在他的年代就曾经,希腊历史学家,代表作《伯罗奔尼撒战争史》 对人民做过一次演讲,他说"人就是城邦"
In this way, by knowing what communities it's in and acting on all of them at once you might be able to eradicate polio in the same way that we eradicated smallpox.
因此,通过知晓疾病的所在群体,并且一次性对整个群体做免疫尝试,也许那就可以像根除天花那样,根除小儿麻痹症
Now in the case of The Framingham Study they did bi-annual assessments, every two years brought people into the lab and got very careful measures on them, so a lot of what we initially knew about diet and health, smoking and health, and other things came from The Framingham Heart Study.
弗明汉研究每两年做一次评估,每两年在实验室里对研究对象,进行十分仔细的检测,我们对饮食与健康,吸烟与健康以及其他的了解,最初都来自于弗明汉心脏研究
And typically, I'm not going to just search once in a list, I'm going to search multiple times.
还要考虑我要如何去使用它?,我不会对一个列表只做一次搜索。
OK, good. This might be our all-time high, 89% got this right. This is great.
好的,很好这可能是我们上课以来正确率最高的一次,89%,的同学都做对了,这太棒了。
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坐标。
应用推荐