1.

Which of the following is Python’s standard sorting algorithm?(a) quick sort(b) introsort(c) merge sort(d) tim sortThe question was posed to me by my college director while I was bunking the class.My doubt stems from Sorting in chapter Sorting of Data Structures & Algorithms II

Answer»

The correct choice is (d) tim sort

The best EXPLANATION: Tim sort has been python’s standard sorting algorithm since its version 2.3. It is an EXAMPLE of hybrid sorting algorithm which means it USES more than ONE sorting algorithm as a routine.



Discussion

No Comment Found

Related InterviewSolutions