You are viewing a single comment's thread. Return to all comments →
python version
def GetNode(head, position): h1 = head h2 = head while 1: h2 = h2.next if not h2: return h1.data if position == 0: h1 = h1.next else: position -= 1
Seems like cookies are disabled on this browser, please enable them to open this website
Get Node Value
You are viewing a single comment's thread. Return to all comments →
python version