"I dare say th' nurse wants me to stay with him a bit," she said.
“我敢说,奶妈想让我和他呆一会儿。”她说。
When I seed thee put tha' legs on th' ground in such a hurry I knowed tha' was all right.
当我看见你匆忙地把腿伸出来踩在地上时,我就知道你没事。
I get my day out once a month same as th' rest.
我和其他人一样每个月有一天的休息时间。
So I'm not going to worry whether this item is a vase or a watch or painting I'm just going to say it's the n'th element.
所以我不用担心这个物品,是花瓶还是手表或者油画,我只要说这是第n个元素就好。
With this, if I can assume that accessing the i'th element of a list is constant, then you can't see that the rest of that analysis looks just like the log analysis I did before, and each step, no matter which branch I'm taking, I'm cutting the problem down in half.
读取数组中的第i个元素,是个常量时间的操作的话,我也就能像以前那样得到,这个算法是对数级复杂度的分析,并且每一步不管我选择哪个区间,我都可以把问题的规模缩小一半。
应用推荐