What is the time complexity of Python's built-in sort?
Correct answer
D. O(n log n)
10 views
D. O(n log n)
10 views
Timsort runs in O(n log n) in the worst case and O(n) on sorted data.
Asked in: Python Interview Advanced
https://docs.python.org/3/library/index.htmlNot sure why the answer is D? Ask here and get an explanation.