But I don't think you can then turn around and prosecute the interrogators for doing what they were told was permissible,".
VOA: standard.2009.04.17
self y Notice what I also do here, I create self dot y, give it a value, and then, oh cool, I can also set up what's the radius and angle for this point, by just doing a little bit of work.
我创建了,然后给它赋值,然后,噢太酷了,通过做一点额外的工作,就可以得到点的半径和角度了,好,实际上如果。
I can click on the cherries and see what they're doing, you know, not all that much.
点击那些樱桃,看它们在做什么,你能有个大概的了解。
Right? You can see that this ought to be linear, because what am I doing?
这个算法应该是线性复杂度的,因为这个算法是怎么执行的呢?
I don't hear most of it. But there are moments, and they're moments that give me pleasure when I can say, "Oh,yeah. That's what he's doing there."
我也只能听出一小部分,但是有时候,这些时候总是让我激动,我会发现,哦对,这正是作曲家在做的“
I'll let you just grok it but you can see it's basically doing what I did over there. Setting up two indices for the two sub-list,it's just walking down, finding the smallest element, putting it into a new list. When it gets to the end of one of the lists, it skips to the next part, and only one of these two pieces will get called because only one of them is going to have things leftovers.
你们可以大体的浏览一下,但是它们基本就是我在那里所做的事情,为两个子列表设置了两个指针,指针顺着列表走下去,找到最小的元素,把它放入到一个新的列表中去,当它走到一个列表的尾部时,它会跳到下部分去,两部分中只有一个会被执行,因为只有一个会有元素剩余。
应用推荐