Because I'm cutting down the problem in half at each time. You're right, but there's something we have to do to add to that, and that's the last thing I want to pick up on.
但是我们还需要强调一点,这是我最后想讲的一点,让我们来看看代码-实际上,让我们先来测试测试吧。
You really can take in everything single at a time, you can really pay attention to each piece.
你真的能够一次专注于一个作品,并理解它。
And you can see it wrapping its way down, cutting in half at each time until it gets there, but it takes a while to find. All right.
但是这也花了一点时间来搜索,好,让我们看看100万,或者1000万是不是在数组里。
Each year it's dramatized by the cycle of the seasons, And at a certain time of the year it seems that The forces of darkness and chaos are prevailing but each spring, Once again, cosmic order and life return.
每年这冲突都由季节的轮回戏剧性地体现出来,仿佛是每年都有一个时期,弥散着黑暗和混乱的势力,可是每当春天来临,宇庙的秩序又恢复了。
now we're not just talking about 1 photon, 1/2 let's say we shoot them all at the same time at our metal, each of them having some energy that's let's say 1/2 the work function. So, just to take a little bit of an informal survey, who thinks here that we will have an electron that is ejected in this case?
我们现在不仅仅讨论一个光子,它们所具有的能量是功函数的,我们在同一时刻把它们打到金属上,我们做一个不太正式的调查,谁认为这种情况下,一个电子会被打出?
Each one of the boys was one of the gentlemen who lived in Hawaii at the time, and he was looking for bride and wrote a letter to a Japanese woman.
男生们扮演战争期间,住在夏威夷到的绅士们,他正在寻找新娘,给一名日本女人写了封信。
And my guess is the result is yes, you could but you're not going to feel un-conflicted about it and it's because these two are conflicting each other at the same time.
我的观点是,你可以爱上两个以上的人,你可以这样做,但是你会内心很矛盾,因为这两者,一直思想一直不停地在做斗争。
We played a game at the very end last time, where each of you chose a number - all of you chose a number - and we said the winner was going to be the person who gets closest to two-thirds of the average in the class.
我们在上节课最后做了一个游戏,你们每个人都选了一个数字,你们所有的人都选择了一个数字,选择的数字最接近全班,平均数的三分之二的人就是赢家
printf Well, notice I'm calling print F with percent C, and then I'm printing out each of these letters one at a time.
好的,请注意我用%c来调用,然后我打印出一个一个打印出这些字符。
Here's another picture of it here, showing it in a little bit more detail, that you have lots of DNA in each of the cells in your body but you're not using all that DNA at any one time.
这里有一张更加详细的图片,来说明这一点,人体内每个细胞中都含有大量DNA,但并不是所有的DNA都会同时发挥作用
Once each time. Right? I only do one swap potentially, it-- though not one potentially, each time at the end of the loop I do a swap.
每次循环做一次,对么?我其实,就可能做了一次交换,也许并不是可能,每次循环的结束我都得做一次交换。
So what would I want to do? I'd like to somehow walk down each of the digits one at a time and add them up. Ah, that's a looping mechanism, right? I need to have some way of walking through them.
去取这个数的,每个数字然后把他们加起来,啊,这是个循环机制对不对?,我得找到一个遍历它们的方法,一种简单的方法可能。
That one's not so obvious. So let's think about this for a second. To sort a list in linear time, would say, I have to look at each element in the list at most a constant number of times.
所以让我们来思考一会,要在线性时间能排序,列表里每个元素最多被使用常数次,不一定是一次,对吧。
He was trying to get people to carpool, since at the time carpooling was on the way down, and I now quote, "each car entering the central city, sorry, in 1960," he said, "each car entering the central city had 1.7 people in it.
他尝试鼓励人们去拼车因为拼车,一般都是一条路上的,他说:,“每一辆进入中央城市的车,抱歉,在1960年的时候“,“每一辆进入中央城市的车里,都坐了1。7个人。
I've got a list, walk you through it an element at a time, do I look at each element of the list more than once?
你一次只能得到他的一个元素,我是不是把数组里面的每个元素,都过了大于等于一次?,你不这样认为么?大家有什么建议?
应用推荐