Find nth element from end of linked list without knowing total length
Answers
Answered by
0
The following function is trying to find the nth to last element of a singly linked list. For example: If the elements are 8->10->5->7->2->1->5->4->10->10 then the result is 7th to last node is 7 .
Similar questions