Well actually we're going to wait until next week to send that one out, and I'll explain why in a minute.
实际上,我们要下周再发这个,我稍后解释原因
Thing I've got a little procedure that could do that, but you know the simplest thing I could do is to say well, gee, wait a minute, why don't I just check to see if these are the same thing?
这两个点是同一个点么?,我已经写了一小块代码,可以提供这个功能,但是你知道的我可以做的,最简单的事情就是说好,嗯?,等等,我为什么不直接去看看,这两个东西相等不相等呢?
It's a common mistake to make if you forget that I've actually declared that variable up top, but wait a minute, I know any time that I use a variable, I have to declare it.
这是一个通常犯的错误,如果你忘了,之前在前面已经声明了这个变量,等等,我知道在任何时候,我使用一个变量,我必须声明它。
And then it becomes cinematic again because the camera says "Wait a minute, I can help."
接着它又变得很电影化了,镜头会说,等等,我可以帮忙“
You might say, "Wait a minute, I thought the tonic was down here."
你也许会说,等等,我想主音应该在这里
Wait a minute, I've lost control of--I'm not--Oh, there it is.
稍等,我控制不了,我不,在这
And I said, wait a minute, is that guy still alive?
我说,等等,难道他还活着
Now you might say, wait a minute. Thing's ordered, if I stop part way through and I throw away half the list, doesn't that help me? And the answer is yes, but it doesn't change the complexity.
如果我在半路上停下来,然后不去遍历剩下的数组了,这会有帮助么?答案是有帮助,但这没法改变算法的复杂度,因为我们之前怎么说来着?
Second step, hm. That also looks constant, you think? Oh but wait a minute. I'm accessing s.
第二步,恩,看起来也像常量,你认为呢?等等,我在进入这个数组。
And you might say, wait a minute, isn't that a string, and the answer's no, I didn't say it's a string by putting quotes around it And notice how the machine responds differently to it.
你会想,等等,这不是个字符串么?,答案是否定的,我没用引号包围它就意味着它不是字符串,请注意计算机对它给出了不同的反应。
Hmm. Well, wait a minute. If I want to sort a list, I'll take one element, I've got to look at probably a lot of the other elements in the list in order to decide where it goes. And that suggests it's going to depend on how long the list is.
我会取一个元素,然后去查看列表,来决定要把那个元素放到哪里,这就意味着它依赖于列表的长度,对,这没什么说服力,但是事实上。
Come on. I need more lights. Wait a minute.
加油,我需要更多光线,等下。
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个字节,等一下,这些字节被计算机本能地,存储在内存中。
Right. So main calls foo, foo is declared, but wait a minute, void foo void I need my prototype; so void foo, void.
对,main调用foo,foo被声明了,但是等一等,我需要我的原型,所以。
If I look for, say, minus 1, you might go, gee, wait a minute, if I was just doing linear search, I would've known right away that minus one wasn't in this list, because it's sorted and it's smaller than the first elements.
如果我要查找-1,你可能要怒了,呵呵,等一等,如果我用的是线性查找,我不会知道-1不在这个列表中,但是列表是排好序的,1又比第一个元素小。
But wait a minute, I've already written buggy code it seems.
先等等,好像我已经写了有bug的代码。
应用推荐