4 ms·
If you are an inventor of sorting algorithms, I'd guess you do that quite often. But seriously, does it really matter? Short functions or blocks with variables
by mojuba 17y ago
If you are an inventor of sorting algorithms, I'd guess you do that quite often.
But seriously, does it really matter? Short functions or blocks with variables of local significance do exist. Swap() was just the first thing that popped up, probably because I like messing around with algorithms and re-implementing them. Which every self-respecting programmer, umm, should do, I think.