Notice what it says. I'm going to pass in 1 a string, call it s, binds it locally, and it says the following.
然后看接下来的内容,接下来说的是如果这个字符串的长度等于,那么我就成功了。
But this year, it's my senior year, so I'm just trying to take it easy and... take my classes.
但是今年我已经大四了,所以不想再那么忙了,就……好好地上课吧。
OK, so I don't have to, it's a great question, I don't have to create a second one for cmp.
但是参数的顺序是相反的,好,那么我就不必,这是个很不错的问题,我就不必再创建。
I realize I've given you some difficult mathematics, but--it's not that difficult actually-- but I kind of went through it quickly.
我发现我给了你们一些比较难的数学公式,不过,并不是想象的那么难-,我很快就把它们讲完了。
We know that two vehicles are going to come along and not help Tony and that the third vehicle will, because everything, as I say, happens in threes in folklore.
我们知道有两辆车会过来,而且它不会帮助托尼,那么第三辆就一定会,因为,我说过,在民间传说中什么都只发生三次。
For example, we've had economists visit, and when we do the class on economics I'll urge you to listen to that particular Podcast.
比如,我们有对经济学家的访谈,那么当我们进行到经济学章节的时候,我就会要你们去听一下相关的播客
So I guess we just start with the religious aspects first.
那么我想我们就先从宗教层面讲起。
If you took a best response to some believe, you can say I took this action because I believed other people are going to do this.
如果你针对自己的信念做出了最佳对策,你就可以说,我是所以这么做,是因为我认为其他人会那么做
So I'm gonna have to compare them, right?
那么我就必须比较它们,对吗?
Now that--If the only language you've ever heard is English, that's going to seem like a really weird example of a problem because you're listening to me speak and in between each of my words you're hearing a pause.
如果你只接触过英语,那么刚才的问题就看上去非常奇怪了,因为你在听我讲话,而你会在我所说的单词之间听到一个停顿
So it's not, as I say altogether straightforward to see how the answer " "Death is bad for me, because when I'm dead I don't exist" how that answers the problem as opposed to simply focusing our attention on the problem ? How can nonexistence be bad for me?
所以这并不是,就像我说的,那么简单可以领会到这个答案,“死亡对我来说不好,因为我死了我就不存在了“,如何回答了这个问题,和我们仅仅把关注点放在问题本身相反,不存在怎么可能对我来说有坏处呢?
We know that ionization energy is going to increase as we go across the periodic table, so that means carbon has a lower ionization energy than nitrogen which is right next to us.
我们知道电离能会随着周期表,向右而逐渐变大,因此碳的电离能比旁边的氮要低一些,那么就像我说的。
If there's no heat flow between the b and c, then I can say all right, a and c were the same temperature.
如果在与之间没有热量流动,那么我就可以说,好吧与处于相同的温度。
And it's not a la-di-dah thing where--I'll tell you, once there was a student in there who had really fantastic French and I said, "Why is your French so good?"
其实也不是那么严格要求的,我给你们讲,以前有个学生法语特好,我就问他你法语怎么这么好啊
Second, since we watch films, we don't have a great deal of time for leturing on my part, discussion by you, or the presentations, we'll be talking about its possibilities.
其次,由于我们要看电影,我们就没那么多时间,让我来讲评,让大家来讨论,或者做演讲,我们之后再讨论这些的可能性吧。
What's the point of this? Again, now that I can think about things recursively, I can similarly break things down into simpler versions of the same problem. It could be one version.
这些的意思是什么呢?再一次我想说,我既然能够以递归的方式思考了,那么我就可以简单地把问题,转化为更简单的同类问题。
Indexed portfolios, you basically say, I want to own all of the stocks that there are, and if the stock market goes up, I make money, if the stock market goes down, I lose money.
指数化资产组合,使之我拥有这些股票,如果股市走高,那么我就赚钱,如果股市走低我就赔钱。
So it makes sense to be able to say, look for many methods I do want to have a way of doing comparison, and I don't have to remember, at top level, what the name of the comparison method was.
所有我需要的对象进行操作,那么就可以这么说了,我想要在很多方法里面,去找做比较的方法,我并不需要记住,每一个比较的方法的名字。
But I want to stress again, as long as I do the base case right and my inductive or recursive step reduces it to a smaller version of the same problem, the code will in fact converge and give me out an answer.
就开心的去做吧,但是我想再次强调,只要基础事件处理正确而我的递归,或递推步骤能把它简化为更简单的同类问题,那么这段代码就可以收敛。
If I'm basically just squeezing jello, that is, I'm trying to make the problem simpler, but the combination turns out to be really complex, I've not gained anything.
如果我只是简单的挤压果汁,那么我是在尝试着让问题变得简单,但是合并过程就真的比较复杂,我得不到任何东西。
Then if there's anything that can't get resolved that way then go ahead and contact me.
如果找不到解决的办法,那么就来联系我
Notice if I'm going to have two different sub problems I need to have two base cases here to catch this. And if I only had one it would error out. And as a consequence, I can go off and ask about rabbits. Let's see.
我需要定义两个基础事件来处理它,如果我只有一个基础事件的话就会产生错误,这样我就能够知道到底有多少只兔子了,让我们来看看,在第12个月末,没那么简单,在第二年末兔子就很多了。
It's as though I've walked across the stage like this realized, damn, it was the guy over here or rather I found the smallest element here who beat out number 2 over here so I can now put number 1 into place and recall that it didn't matte if I punted whoever was standing here 'cause they were given to me randomly anyway.
这就像是我这样走过讲台,然后才发现要找的人在那儿,或者说发现了最小的元素,那么就可以将1号放在正确的位置,而在这儿的是谁并不重要,因为他们本身就是,随机的。
But if we could statistically control for every other variable, all I'd need to do is measure the distance from your door to everybody else's door on campus and I could chart out who's going to fall in love with whom on the Yale campus.
如果我们能精确地控制其他可变因素,那么只需要测测距离,你宿舍门到其他宿舍门的距离,我就能够计算出,校园里谁爱上了谁。
And because, as long as this collection is finite, this thing is just going to walk through. All right?
这个操作就会遍历完它的,对不对?,那么,如果我给大家看看,例如?
and in fact in art and in religion, if I don't recognize my pain and confusion and suffering, it is not, in my words, self-vific.
事实上,在艺术和宗教中,如果我不面对我的痛苦,疑惑和苦难,那么艺术就不是,用我的话讲,有现实意义的。
So I'll--I won't be here Monday but my T.A.'s will handle the exam So, I will see you on Wednesday
我周一就不来了,助教会帮我负责考试,那么,周三再见
So on the count of three, anybody who's entering this election is going to stand up.
那么在我数到三的时候,谁想要参选就站起来
If you decide to opt in by a pass fail, I just need to sign your white study card or if you wanna decide before the 5th Monday, just grab the pink slip and I can sign that and you can turn that in at any point and I'm happy to chat during break today or after class if you have any questions or concerns.
如果你上我们的课程只是要一个分数,那么我只需要在你的白卡片上签个名就可以了,或者说,如果在第五周的周一前还没考虑好,把你的解聘书拿来,只要我签个字,任何时候你都开以离开我的教室,当然,如果你有任何问题和疑虑,我也很高心和大家做课下交流。
Now,if the Michigan guy hadn't been there, what I would have done, if I believed in the personality theory or when I believe in the personality theory, is say Oh look,Napoleon--reincarnated in New York.
如果密西根家伙不曾出现在那里,那么我就会,假如我相信人格理论的话,我便会说,看,拿破仑在纽约转生了。
应用推荐