Y
Hacker News
new
|
ask
|
show
|
jobs
by
klyrs
2706 days ago
Yes, the
real
problem with this implementation is the data structure they use. But is `next == null` a special case? ogod what do we do?!
1 comments
banku_brougham
2704 days ago
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?
link
pure-awesome
2703 days ago
Create a "sentinel" node which represents null and also points to itself, perhaps?
link