Given the head of a singly linked list, remove the head of the modified list.
Note: Could you solve this in a single pass through the list?
Constraints:
The number of nodes in the list is sz
sz
Node.val
n sz
Given the head of a singly linked list, remove the head of the modified list.
Note: Could you solve this in a single pass through the list?
Constraints:
The number of nodes in the list is sz
sz
Node.val
n sz