Delete a NodeEasy
This challenge is part of a tutorial track by MyCodeSchool and is accompanied by a video lesson.
Delete the node at a given position in a linked list and return a reference to the head node. The head is at position 0. The list may be empty after you delete the node. In that case, return a null value.
Example
\(list = 0 \to 1 \to 2 \to 3\)
\(position = 2\)
After removing the node at position \(2\), \(list = 0 \to 1 \to 3\).