摘要:
题目链接:链表中的下一个更大节点 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
阅读(185)
评论(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
阅读(125)
评论(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
阅读(74)
评论(0)
推荐(0)