And now the same for a Quick Sort I implemented. Normally Quick Sort also runs in O(nlogn) time, but its worth noticing that the implementation below just uses the first element as the pivot value, which is not an optimal pivot (performs very badly in partially sorted lists for example), so will leave it to you to think about better ways to choose the pivot value.
I like making stuff & rap lyrics. I helped build developer profile site NerdAbility. I'm also a food nerd.
Interested in food-science? The science of cooking, heat transfer, sous-vide, bbq, fire, anything else? I have a food-science and bbq site called robbishfood, check it out!