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.
The Class is given below for your reference:
Class P:
int D
P To
Write python code for the following problem:
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:
Llist = 0 -> 1-> 2 -> 3
Position = 2
After removing the node at position 2, Llist = 0 -> 1-> 3
The Class is given below for your reference:
Class P:
int D
P To