Re:Nth-to-Last Element in a Singly Linked List
by rabidgnat on Monday February 01, 2010 @12:03AM
(#1091828)
The way I thought of immediately uses 0 pointers:
I didn't hammer it very hard so maybe I missed a case or two. The other obvious problem is that it's not tail recursive (nor very elegant in general)
[ Parent
| on HN ]
There are no comments on this comment yet.