In the linear case, meaning in the unsorted case what's the complexity of this? k times n, right? Order n to do the search, and I've got to do it k times, so this would be k times n.
复杂度是多少?k的n次方,对吧?,在序列n中做搜索,要做k次,所以是k的n次方次,如果先排序后搜索。
Meaning, sometimes you need to do this, but in general there's at least in my view and I don't, John you just don't want to do this.
意思也就是,有的时候你不得不这么做,但是通常来说,至少我认为不该这么做,你同意这么做么?--,John,,would,you,agree?—,你不该这么做。
应用推荐