祇
祇
全部文章
分类
归档
标签
去牛客网
登录
/
注册
祇的博客
全部文章
(共4篇)
题解 | #数组中的逆序对#
class BIT{ private: vector<int> tree; int m; public: BIT(int n):m(n), tree(n + 1){} int lowbit(int x){ return x & (...
2024-02-01
0
205
题解 | #单链表的排序#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2024-01-29
0
179
题解 | #合并k个已排序的链表#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <ios> class Solu...
2024-01-27
0
206
题解 | #链表中的节点每k个一组翻转#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: ...
2024-01-27
0
226