题目链接:https://leetcode-cn.com/problems/delete-node-in-a-linked-list/
题目如下:
class Solution { public: void deleteNode(ListNode* node) { node->val=node->next->val; node->next=node->next->next; } };
欢迎分享,转载请注明来源:内存溢出
题目链接:https://leetcode-cn.com/problems/delete-node-in-a-linked-list/
题目如下:
class Solution { public: void deleteNode(ListNode* node) { node->val=node->next->val; node->next=node->next->next; } };
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)