Sollicitatievraag bij Amazon

What sorting algorithm I would use for sorting an array?

Antwoorden op sollicitatievragen

Anoniem

9 mei 2019

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

2

Anoniem

1 apr 2019

Quick sort

2

Anoniem

9 mei 2019

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