Once again, if I'm lucky I won't get fired.
同样的,我可能有幸保住了工作
I'm lucky I've got a full-time job.
我很幸运,我有一个全职的工作。
All right? If I'm gambling, I'm saying, gee, if I'm really lucky, it'll be only on this side, and I've got a little bit of work to do, but if I'm unlucky, I'm scrawed, the past pluperfect of screwed, OK., or a Boston fish.
如果我够幸运的话,目标数就会在这边的,这会大大减少我的工作量,但如果不幸运呢?我就完蛋了,我就得再从剩下的这么大的数组里找了,这很痛苦,因此选中位数是正确答案。
I don't know what that means-- like God or the gods favor me and so I'm lucky or this is my lucky day.
我不知道那是什么意思...,是说上帝或者众神眷顾我,所以我很幸运,或者说这是我的幸运日
Now, let's imagine I've been very lucky and gotten to you-- just get down on your knee.
现在,假设我非常幸运地伤到你了,请蹲下
The teaching fellows in this course, I'm lucky to work with and you are too.
我非常幸运的能和这些教学人员一起工作,当然你们也是如此。
Me? Well, I am lucky enough in the fact that my hobby is my job, so
我吗?我非常幸运,事实上我的爱好就是我的工作,所以
I'm lucky because I have a great business partner who's working with me.
我很幸运,因为我有一个很厉害的商业伙伴,他和我一起工作。
But I'm lucky because my sister's a hairdresser.
但是我很幸运,因为我的姐姐是一名理发师。
If it's the value I'm looking for, boy, I ought to go to Vegas, I'm really lucky.
我可能要去赌城赌一把了,我太幸运了,然后算法就结束了对不对?
If you can do all that, I think the chances are that you're going to hit a lucky streak because luck comes and goes.
如果你可以做到这些,我认为你很可能要,运气连碰了,因为运气总是来来去去。
All right? A linear search, I start at the beginning of the list and walk all the way through it. All right, if I'm lucky and it's at the low end, If it's not, if it's at the far end, I've got to go forever, and you saw that last time where this thing paused for a little while while it actually searched a list this big.
如果很幸运就在开头,那运行起来很快,如果是在末尾,那就一直得走到头,上次看到了,如果搜索空间很大,程序都会暂停一会,好的,那我希望你们。
Now I look at that element. Is it the thing I'm looking for? If I'm really lucky, it is. If not, I look at the value of that point here and the thing I'm looking for. And for sake of argument let's assume that the thing I'm looking for is smaller than the value here.
现在我们瞧瞧指向的元素,它是我们找的值么?如果足够幸运,他就是,如果不是,我们比较指向的元素,同我们要找的元素,方便起见,假设要找的元素比这里的值要小。
Let me imagine that I've been lucky enough to get you out of the way-- you're fighting him you can't even look at me, but I can do that.
假设我运气够好,把你从这条路上推开了,你在和他搏斗,不可能看得到我,但我可以这样
Luck seems to mean something about you, like I'm a lucky person.
运气像是可以用来描述一个人,好比我是个幸运的人
Actually for that, I can just use, if I'm lucky, function F5, which didn't work, so let me try it again,here we go.
实际上这一次,我是想用用,如果我够幸运的话,用下F5,噢,怎么不灵,让我再试试,好了。
But part of the process of being systematic is not assuming that I'm going to get a lucky guess. But not even thinking really hard at this point. But just pruning the search space.
但是系统化的过程是不允许,假设我做出了,一个幸运的猜测的,而是逐步缩小搜索空间。
应用推荐