Re:Nth-to-Last Element in a Singly Linked List
by DenisM on Sunday January 31, 2010 @02:11PM
(#1090891)
It's not equally inefficient. The former will trash the CPU cache on large lists, whereas the latter will not if the k is small.
[ Parent
| on HN ]