Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mizmar
· 7mo ago · 0 comments
Another similar trick - XOR doubly linked list: XOR the prev and next pointers (storaged size of node decreases) and you can recover the values when accessing the node from prev or next side and thus already know one of the addresses.
Comments
[–]
zahlman
7mo ago
This, too, is covered in TFA.