Given the head of a linked list, repeatedly remove consecutive sequences of nodes whose values sum to
Return the head of the resulting linked list.
Note: If there are multiple possible answers, you may return any of them.
Constraints:
The number of nodes in the linked list is in the range
node.val
Given the head of a linked list, repeatedly remove consecutive sequences of nodes whose values sum to
Return the head of the resulting linked list.
Note: If there are multiple possible answers, you may return any of them.
Constraints:
The number of nodes in the linked list is in the range
node.val