TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to Sort a List in Python

3 pointsby aoglalmost 5 years ago

2 comments

dalkealmost 5 years ago
Python has a sorting HOWTO at <a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;howto&#x2F;sorting.html" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;howto&#x2F;sorting.html</a> . I was the original author, back in around 1998 or so. This new article covers a subset of that HOWTO.
babu_bhaiyaalmost 5 years ago
What is the time complexity? O(n log n) most probably. And what actual sort does it use? Quick sort or merge sort or any other?
评论 #24313758 未加载