开发者

Python Sort Algorithm [duplicate]

This question already has answers here: What algorithm does Python's built-in sort() method use? (2 answers) Closed 9 years ago.

I am implemented different sorting algorithms in Python to better understand them, an开发者_如何学编程d I was wondering what type of sort does Python's built-in sort method implement?


It's an algorithm called Timsort developed by Tim Peters specifically for Python.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜