Re:Nth-to-Last Element in a Singly Linked List
by caf on Sunday January 31, 2010 @08:35PM
(#1091528)
Your "every k steps" operation executes N / k times, which isn't O(k) so I don't think it meets the requirements given.
[ Parent
| on HN ]