You are viewing a single comment's thread. Return to all comments →
Javascript solution
function getNode(llist, tailPos) { let curPos = llist while(curPos!= null){ tailPos-- curPos = curPos.next } tailPos = ((tailPos*-1) - 1) while(tailPos != 0){ llist = llist.next tailPos-- } return llist.data }
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 →
Javascript solution