3 ms·
Well sure, until you hit the case where two years down the road that 100 items is now 1,00,000 and if you had only used the built in function that does qsort...
by icefox 17y ago
Well sure, until you hit the case where two years down the road that 100 items is now 1,00,000 and if you had only used the built in function that does qsort...
I would always choose a sorting function from a library over some hand grown thing (with no tests no doubt). They are too easy to make mistakes. Sorting functions are one of those things you get for free in [nearly] every language, writing a new one is usually just a waste of time.