Insert a Node at the Tail of a Linked List

  • + 1 comment

    because the question asks to "return the head of the updated linked list". In your case you're returning the pointer (is that correct Java terminology?) to the last node.