Consider the hierarchy for each element.
考虑每个元素的层次结构。
The first thing we want to do is add up all the values for each element.
首先我们要做的是,把每个元素的所有的分值加总。
XML documents must contain matching start and end tags for each element.
XML文档必须包含每个元素匹配的开始标记和结束标记。
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.
所以让我们来思考一会,要在线性时间能排序,列表里每个元素最多被使用常数次,不一定是一次,对吧。
应用推荐