摘要: 方法1:迭代法 代码: #include<iostream>using namespace std; struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solutio 阅读全文
posted @ 2020-10-28 20:19 诗和远方* 阅读(178) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution {public: ListNode* deleteNode( 阅读全文
posted @ 2020-10-28 11:25 诗和远方* 阅读(106) 评论(0) 推荐(0) 编辑