Hacker News new | past | comments | ask | show | jobs | submit login

what's up with the sort() call?

The spec for the problem he was actually trying to solve said that you needed to provide the set of activities in sorted order. The list is generated in no particular order, so I sorted them before returning them. (A Python array sort sorts the array in place.)




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

Search: