Which sorting algorithm is best suited to re-sort an almost fully sorted list?

后端 未结 4 1321
再見小時候
再見小時候 2020-12-17 21:42

I have a list of strings which has been sorted by a specific comparison function.

Now I have to re-sort this list using a different comparison function.

4条回答
  •  我在风中等你
    2020-12-17 22:19

    Have access to both search operations? If yes, you can to build some hash tree during first sorting process and use it to other sort operations

提交回复
热议问题