The problem is a generalization of the one explained in How to find the 3rd element from end in linked list in Java and basically consists of finding the element at position last - n
in a Linked List which of course does not provide
-
Random Access Semantic
-
Length Semantic
but just the next()
semantic
Probably the most interesting thing of this solution (as the problem is not too difficult) is it has been implemented in Haskell emulating the Linked List with a Standard List and without cheating hence making use just of the next()
semantic