The British newspaper the Guardian reported Monday that altering the role of Mr.Karzai, who is accused by some western officials of tolerating corruption and mismanagement, is one possible element of a revised Afghan policy to be announced by the Obama administration.
VOA: standard.2009.03.23
They thought, for example, if you could do something with one element, if you looked at an element very close to it, it would be similar enough that you could maybe replace it with that.
他们认为,比如,用一种元素可以做的,用它邻近的元素,代替它的位置,也应该能做到。
Right, 'cause that means either I've been handed zero elements which mean there's really no work to be done or I've been handed one element which is a vacuous truth that it's sorted, right?
因为如果给出0个元素,那意味着不需要做任何事,如果给出1个元素,那显然,它是有序的,对吗?
And I think you could win, if you're going on the Hustings, let me add one element to the argument you might make.
我认为,如果你参选,应该可以赢,我给你补充一点,你也许能用上。
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.
我会取一个元素,然后去查看列表,来决定要把那个元素放到哪里,这就意味着它依赖于列表的长度,对,这没什么说服力,但是事实上。
Many personal and place names in the patriarchal narratives are Israel Ishmel Beth-el compounds in which one element is El. Israel, Ishmael, Beth-el.
在宗法的叙述中,很多人名与地名,组成中都有El这一元素。
I don't know if you heard this morning, but there was news of the discovery of yet one more element.
我不知道你们今早听说了没,有一个新发现,一个新的元素的发现。
Today we know, for example, if you can put one certain kind of element in your mouth or eat that, it doesn't necessarily mean you want to put the element next to it and your mouth as well, that might not be safe.
现在我们知道了,比如,即使你能把某一种元素放进嘴里,或者吃下去,这也并不一定意味着,你会把它邻近的元素也吃进嘴里,这可能会有危险,但。
Well, I might move my hands here 'cause this list only has one element left.
我会将手移到这边,因为这个列表中,只剩下一个元素了。
Now what I'd like to do, every time I find a divisor I'd like to gather it together. So I'm going to create a tuple of one element, the value of i.
那么我就会去创建只包含一个元素的元组,也就是这个除数了,然后,啊,很好,这里是加法重载的一个很糟糕的应用。
It's one element like I claimed before it's sorted and so there's no work to be done.
当有1个元素时,在比较前就知道它是有序的,那就没必要再进行比较了。
I've got one element to look at.
我可以查看一个元素。
There was one element in there.
行不行得通呢?
That is basically saying, given some collection of data, I want to have again a looping mechanism, where now my process is, walk through this, the collection one element at a time. And for that, we have a particular construct, called a FOR loop.
现在我的过程就是,通过一个个访问这个集合中,的元素的方式,来遍历这个集合,为了达到这个目的,我们有一个特定的结构,成为FOR循环。
Sure. So that says one should be the first element in my merge list.
所以可以确定1应该是合并后的,列表的第一个元素。
All right, I've got to do one pass to bubble the last element to the end. I've got to do another pass to bubble the second last element to the end.
好的,我要冒一次泡来,把最大的元素冒到最后去,我还得再冒一次泡来吧第二大的元素。
So the first one here is something called insertion sort which amounts to going through the list, taking the first thing that you see and inserting that element into its correct place, - then moving on to the next one, dealing with what element-- whatever element you're given and putting it in its right place.
首先是插入排序,在此算法中,需要遍历整个列表,将你遇到的第一个元素放在其正确的位置,然后移动到下一个元素,继续处理-,不管是什么元素,都将其插入到合适的位置。
I'll let you just grok it but you can see it's basically doing what I did over there. Setting up two indices for the two sub-list,it's just walking down, finding the smallest element, putting it into a new list. When it gets to the end of one of the lists, it skips to the next part, and only one of these two pieces will get called because only one of them is going to have things leftovers.
你们可以大体的浏览一下,但是它们基本就是我在那里所做的事情,为两个子列表设置了两个指针,指针顺着列表走下去,找到最小的元素,把它放入到一个新的列表中去,当它走到一个列表的尾部时,它会跳到下部分去,两部分中只有一个会被执行,因为只有一个会有元素剩余。
Just swapping them, right? I temporarily hold on to what's in the i'th element so I can move the i plus first one in, and then replace that with the i'th element.
交换他们,对么?,临时的保存下第i个元素,然后把第i+1个元素移进来,把i+1的位置替换为第i个元素。
And one is the third element. And just return, it's done. It is a palindrome. That make sense.
完成,数组时回文的,这就对了,因为数组1a1从前面和从后面读都是一样的。
So we'll put one as the first element, maybe a is the second element.
可能a可以作为第二个元素,然后第三个元素也是1,然后返回。
应用推荐