上一页 1 ··· 7 8 9 10 11 12 下一页
摘要: 10.两两交换链表的结点 阅读全文
posted @ 2023-02-09 00:29 nullptrException 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 13.删除链表的第N个节点(Leetcode 19) 阅读全文
posted @ 2023-02-09 00:28 nullptrException 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 12.重排链表(Leetcode 143) 阅读全文
posted @ 2023-02-09 00:28 nullptrException 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 11.回文链表(Leetcode 243) 阅读全文
posted @ 2023-02-09 00:27 nullptrException 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 10.两两交换链表的结点 阅读全文
posted @ 2023-02-09 00:27 nullptrException 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 8.翻转链表(Leetcode206) #include <stdio.h> struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { public: 阅读全文
posted @ 2023-02-09 00:26 nullptrException 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 7.两个排序链表的交点(Leetcode 160) 方法一: #include <stdio.h> struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; #include <set> 阅读全文
posted @ 2023-02-09 00:25 nullptrException 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 6.链表求环||(Leetcode 42) 方法一: #include <stdio.h> struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; #include <set> cla 阅读全文
posted @ 2023-02-09 00:24 nullptrException 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 5.复杂链表的深度拷贝(Leetcode 138) #include <stdio.h> struct RandomListNode { int label; RandomListNode *next, *random; RandomListNode(int x) : label(x), next( 阅读全文
posted @ 2023-02-09 00:23 nullptrException 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 4.反转链表 ||(Leetcode 92) #include <stdio.h> struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { publi 阅读全文
posted @ 2023-02-09 00:22 nullptrException 阅读(9) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 下一页