Question DSA-SORT-0020
HardWhich sorting algorithm does Python's sorted() and Java's sort for objects use?
- A.
Bubble sort
- B.
Timsort, a stable hybrid of merge sort and insertion sort
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Sorting question
Which sorting algorithm does Python's sorted() and Java's sort for objects use?
Bubble sort
Timsort, a stable hybrid of merge sort and insertion sort
Sign up free to see the answer and a step-by-step explanation.
Quick sort
Heap sort