Question d’entretien chez Amazon

What sorting algorithm I would use for sorting an array?

Réponses aux questions d'entretien

Utilisateur anonyme

9 mai 2019

Depends on the size of the array. Insertion sort for small, quick sort for large

2

Utilisateur anonyme

1 avr. 2019

Quick sort

2

Utilisateur anonyme

9 mai 2019

Also, if array is in ascending or descending order QS will be n^2. Would be better to use merge sort.