You are viewing a single comment's thread. Return to all comments →
This is my solution
let arr = []
while(llist!= null) { arr.push(llist.data) llist = llist.next } while(positionFromTail > 0) { arr.pop() positionFromTail-- } return arr[arr.length-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 →
This is my solution
let arr = []