爱刷题的坤坤
爱刷题的坤坤
全部文章
分类
归档
标签
去牛客网
登录
/
注册
爱刷题的坤坤的博客
全部文章
(共10篇)
题解 | 链表的奇偶重排
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-08-27
0
44
题解 | 删除链表的倒数第n个节点
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-08-27
0
47
题解 | 链表中倒数最后k个结点
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-08-27
0
52
题解 | 合并两个排序的链表
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-08-26
0
52
题解 | 链表中的节点每k个一组翻转
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: Li...
2025-08-26
0
57
题解 | 链表的回文结构
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ #include <stack> class PalindromeL...
2025-08-22
0
35
题解 | 链表分割
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ class Partition { public: ListNode* ...
2025-08-22
0
62
题解 | 两个数组的交集
#include <unordered_map> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums1 int整型ve...
2025-07-17
0
59
题解 | 数字统计
#include <iostream> #include <string> using namespace std; //解题思路1 //拆分数字 //思路2 //利用to_string函数把每个数字转成字符串 //然后查找子串"2" int mai...
2025-07-17
0
91
题解 | #小乐乐定闹钟#
#include <stdio.h> int main() { int h, m,k; scanf("%d:%d %d",&h,&m,&k); printf("%02d:%02d",(h+(m+k)/...
2024-11-26
1
79