public ListNode removeElements(ListNode head, int val) {
// 递归基
if(head == null)
return head;
if (head .val == val) {
return head.next;
}
head.next = removeElements(head.next, val);
while (head.next ! = null) {
head.next = removeElements(head.next, val);
}
return head;
}