摘要:
10.两两交换链表的结点 阅读全文
摘要:
13.删除链表的第N个节点(Leetcode 19) 阅读全文
摘要:
12.重排链表(Leetcode 143) 阅读全文
摘要:
11.回文链表(Leetcode 243) 阅读全文
摘要:
10.两两交换链表的结点 阅读全文
摘要:
8.翻转链表(Leetcode206) #include <stdio.h> struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { public: 阅读全文
摘要:
7.两个排序链表的交点(Leetcode 160) 方法一: #include <stdio.h> struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; #include <set> 阅读全文
摘要:
6.链表求环||(Leetcode 42) 方法一: #include <stdio.h> struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; #include <set> cla 阅读全文
摘要:
5.复杂链表的深度拷贝(Leetcode 138) #include <stdio.h> struct RandomListNode { int label; RandomListNode *next, *random; RandomListNode(int x) : label(x), next( 阅读全文
摘要:
4.反转链表 ||(Leetcode 92) #include <stdio.h> struct ListNode { int val; ListNode *next; ListNode(int x) : val(x), next(NULL) {} }; class Solution { publi 阅读全文