由于题目已经限定范围,直接覆盖即可。
void deleteNode(ListNode* node) { node->val = node->next->val; node->next = node->next->next; }
posted on 2018-02-06 17:18 willaty 阅读(85) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 willaty Powered by .NET 9.0 on Kubernetes