# https://www.hackerrank.com/challenges/get-the-value-of-the-node-at-a-specific-position-from-the-tail/forum

def GetNode(head, position):
    curr = head
    tail = head
    for i in range(position):
        tail = tail.next
    while tail.next is not None:
        curr = curr.next
        tail = tail.next
    return curr.data
Solve hackerrank linked list problem
[algorithm] Solve hackerrank linked list problem

This is the solution of "get-the-value-of-the-node-at-a-specific-position-from-the-tail" problem.
