237. Delete Node in a Linked List 發表於 2023-02-13 | 分類於 leetcode problemsolution12345void deleteNode(struct ListNode* node) { node->val = node->next->val; node->next = node->next->next; } analysis time complexity O(1) space complexity O(1)