void deleteNode(struct ListNode* node) {
node->val = node->next->val;
node->next = node->next->next;
}
leetcode面试题 02.03. 删除中间节点C
最新推荐文章于 2021-01-20 18:49:44 发布
void deleteNode(struct ListNode* node) {
node->val = node->next->val;
node->next = node->next->next;
}