开发者

Python Sort Algorithm [duplicate]

开发者 https://www.devze.com 2023-02-26 02:50 出处:网络
This question already has answers here: What algorithm does Python's built-in sort() method use? (2 answers)
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

精彩评论

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