摘要: 题目链接:链表中的下一个更大节点 O(N^2)的一种写法。 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), ne 阅读全文
posted @ 2020-09-26 14:49 focusDing 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目链接:链表组件 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ 阅读全文
posted @ 2020-09-26 11:28 focusDing 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 题目链接:分隔链表 /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ 阅读全文
posted @ 2020-09-26 10:21 focusDing 阅读(69) 评论(0) 推荐(0) 编辑