标签:elements etc nts ack ext str head class tno
struct ListNode* removeElements(struct ListNode* head, int val){
if (head == NULL) {
return NULL;
}
head->next = removeElements(head->next, val);
return head->val == val ? head->next : head;
}
标签:elements etc nts ack ext str head class tno
原文地址:https://www.cnblogs.com/ganxiang/p/13637311.html