Hacker News new | ask | show | jobs
by naniwaduni 1453 days ago
Bubble sort's inner loop is so hilariously pessimal that it's incredibly easy to accidentally write an insertion sort because you intuition tells you it can't possibly be intended to be that bad.