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

Yes. But I don’t think the OP is suggesting this as an alternative to using an array. As I read / skimmed it the linked list is just a simplified example. You can use this trick in more complex situations too, eg if you’re searching a tree structure and you know that some paths through the tree are much more common than others.


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

Search: