Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> be honest, how often are you sorting things by a number and only a number?

All the time.

IP addresses

permutation arrays (⍋⍋)

Sometimes I pretend characters are numbers; short fixed-length strings (like currencies or country codes or even stock tickers) can be numbers.

If I can get away with it, a radix sort is better than anything else.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: