30:00
Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val == val, and return the new head.
The number of nodes is in the range [0,104][0, 10^4][0,104].
1≤Node.val≤501 \leq \text{Node.val} \leq 501≤Node.val≤50
0≤val≤500 \leq \text{val} \leq 500≤val≤50
Remove all nodes with value 6
null