Re:Nth-to-Last Element in a Singly Linked List
by cperciva on Sunday January 31, 2010 @02:29PM
(#1090927)
Yep, that's it. I like this puzzle because while there are lots of examples where having 2 pointers is better than 1, it's the only (non-contrived) example I can think of where 1 point is just as good as 2, but 3 pointers is much better.
[ Parent
| on HN ]
There are no comments on this comment yet.