In the second case, I found in the next smallest element and moved here, taking what was there and moving it on, in this case I would swap the 4 and the 8, and in next case I wouldn't have to do anything.
在第二次遍历中,我找到了,第二小的元素,把它移到这里,把这里原来的元素移到哪里,在这一次遍历中,我会把8和4交换,然后一次遍历,不会做任何事情。
So, just random contract jobs until I discovered this company called Odeo, which was run by Evan Williams.
所以,我一直在打零工,直到我找到了一家叫奥德奥的公司,它是埃文·威廉姆斯经营的。
You know, I was not really disappointed, it found something close enough to 3 that I'm happy.
我真的不失望,因为它找到了一个,和3相当接近的数,我还是挺高兴的。
So, I found it this morning.
今天早上我找到了它。
And as you'll see by your handout, I've attempted tend to trace it.
你们可以看看课堂材料,我尝试着去找,了找它的起源,我能找到。
I think the easiest way to look at what this does, is let's take a really simple example- I want to make sure I put the right things out- I've got a simple little list of values there.
到底做了什么,就是让它跑一个简单的例子,我想要确信我找到了正确的元素-,这里我用一个简单的小的列表-,如果我去代码里面看。
I'm going to give a name to that. And what you see there is I'm going to call divisors initially an empty tuple, something has nothing in it. Right here. And then I'm going to run through the same loop as before, going through this set of things, doing the check.
你们可以看到这里,我初始化一个空的元组,名为divisiors,这里,然后我会去运行,跟以前一样的循环,遍历这个集合内的东西,然后做检查,现在我要做的是,每次我找到了一个除数我要把它收集起来。
应用推荐