思路学习
思路学习
全部文章
分类
归档
标签
去牛客网
登录
/
注册
思路学习的博客
全部文章
(共7篇)
[TOP202]题解 | #牛群的重新分组#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: Li...
2024-05-22
0
211
[TOP202]题解 | #调整牛群顺序#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2024-05-21
0
252
[TOP202]题解 | #牛群排列去重#
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(nullptr) {...
2024-05-21
0
176
[TOP101]题解 | #合并k个已排序的链表#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-05-19
0
154
[TOP101]题解 | #合并两个排序的链表#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-05-19
0
107
[TOP101]题解 | #链表内指定区间反转#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2024-05-19
0
160
[TOP101]题解 | #反转链表#
#include <cstddef> // 定义链表节点结构体 // struct ListNode { // int val; // 节点的值 // ListNode* next; // 指向下一个节点的指针 // Lis...
2024-05-19
2
229