So this is a place where the amortized cost actually helps me out. And as the gentleman at the back said, the question he asked is right, it depends on what I'm trying to do.
开始起了作用,我们要分析的话,我要想一想我在做什么,我抓住了每一点么?
If we could do sort, then we saw, if we amortized the cost, that searching is a lot more efficient if we're searching a sorted list.
如果我们可以做排序,然后我们可以看到,如果我们分摊开支,在有序列表中搜索将会变得更高效。
应用推荐