Find the n-th last element in a linked list.
Anonymous
Have one pointer pointing the beginning of the list, and a second one pointing to the n-th element. Iterate through the list, updating both of the pointers, until the second one reaches the end of the list. Then return the first pointer.
Check out your Company Bowl for anonymous work chats.