You are viewing a single comment's thread. Return to all comments →
go golang solution
func getNode(llist *SinglyLinkedListNode, positionFromTail int32) int32 { hashMap := make(map[int32]int32) var i int32 for llist != nil { hashMap[i] = llist.data llist = llist.next i++ } return hashMap[i-1-positionFromTail] }
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 →
go golang solution