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

I think the lookup would involve a string comparison if the hash matches, and that is also O(n). You should be able to construct a pathological example that ends up quadratic.


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

Search: