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

No, it’s not—-they’re passing in a “node”, not a list, which always contains both a head element and a (nullable) tail pointer. That’s why it can’t separate the head in the case of size one: the node must maintain a non-null head.


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

Search: