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

This is interesting. Is it possible to implement a linked list while eliminating the end of the list ‘edge case’, in the fashion of the parent article?


Create a "sentinel" node which represents null and also points to itself, perhaps?




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

Search: