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

Crabsort: O(n)? It's a small set. Although there is a 4 plate/ five customer contention problem to boot. I can't tell if Crabsort is stable though.

Fortunately, everyone leaves with some spaghetti even if it's not a 100% optimal solution.



It should be 5 plates / 4 consumers, were it not for the late-arriving crab throwing a wrench in at the last minute.




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

Search: