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

The OP is talking about a list with at most five items in it. Linear search is not an issue. Using a dict may even be slower than just searching a 5 element array linearly...


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

Search: