Challenge: Insertion at Tail
Try to solve the Insertion at Tail problem.
We'll cover the following...
Statement
Given the head of a linked list and a target, value
, return the updated linked list head after adding the target value at the end of the linked list.
Constraints:
Let n
be the number of nodes in the linked list:
n
node.data
,value
Examples
Access this course and 1400+ top-rated courses and projects.