Now, what did I want to do? I wanted to check membership. I want to do search. Well that's simple. Given that representation and some value, I just say gee is it there?
现在,我需要做什么?,我要做成员检查,我要做查找,这就很简单了,给了即定的表示和一些值,我只需要说喂在那儿吗?
so I have some idea of what I'm going to need to do.
所以,我明白自己需要做些什么。
What do I now need to do in order to sort the whole left half? Compare them all.
为了对左半部分的4个杯子排序,我需要做什么呢?,进行比较。
Figure out what I'm trying to walk through What's the collection of things I'm trying to walk through. Figure out what I want to do at each stage. Figure out what the end test is.
弄清楚需要遍历的东西,弄清楚我需要遍历的东西的集合,弄清楚我在每一步该做什么,弄清楚终结测试。
It is true mathematically, you can add two numbers, but you've got to ask yourself,"What am I doing as a physicist when I add these two numbers?"
在数学上它是正确的,你可以引入这两个常数,但是你需要问问自己,当我引入这两个常数时,这么做有什么物理意义
You wouldn't think I would have, I don't have -- all right, be that way about it.
你不用担心我需要什么,我不需要什么--好了,先这么做。
If I want this one over here, so what work remains to be done?
如果我想把它放在这边,那还需要做什么呢?
And I have to admit, I did the standard thing you do every time you run across something you don't know about, you go to Wikipedia.
额外的名为self的变量,那么什么是self呢?,我需要承认,我做了大家当碰到,不会的问题都会做的标准的事情。
What do I need for those writers to all interact together? I need a specification.
这个比方的意义什么呢?,我需要怎么做才能使。
What do I have here? I need the variable, ANS, ANS I need x, and I need ANS times ANS, ANS times ANS. Right. Those are the three things that are involved in this computation.
因此让我先用这个方法做吧,我这里需要什么呢?我需要变量,还需要x,然后将ANS乘以ANS,对,在这个计算中涉及到了三件事情。
应用推荐