Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
banku_brougham
on Jan 27, 2019
|
parent
|
context
|
favorite
| on:
Special Cases Are a Code Smell
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?
pure-awesome
on Jan 28, 2019
[–]
Create a "sentinel" node which represents null and also points to itself, perhaps?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: