8 ms·
Why is processing a sorted array faster than processing an unsorted array?
- bradknowles 7y agoDepends on your sort algorithm. For some algorithms, they perform worse on an array that is already sorted. Check your local copy of Knuth, volume 3.
8 ms·