蚂蚁go
蚂蚁go
全部文章
分类
归档
标签
去牛客网
登录
/
注册
蚂蚁go的博客
全部文章
(共77篇)
题解 | #寻找峰值#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @return int整型 ...
2024-06-30
0
135
题解 | #删除有序链表中重复的元素-II#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <queue> class So...
2024-06-30
0
139
题解 | #删除有序链表中重复的元素-I#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-06-30
0
122
题解 | #链表的奇偶重排#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-06-30
0
128
题解 | #判断一个链表是否为回文结构#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-06-30
0
124
题解 | #单链表的排序#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <cerrno> class S...
2024-06-29
0
127
题解 | #链表相加(二)#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-06-29
0
119
题解 | #两个链表的第一个公共结点#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* FindF...
2024-06-29
0
126
题解 | #链表中倒数最后k个结点#
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2024-06-29
0
128
题解 | #链表中环的入口结点#
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ #include <variant> c...
2024-06-29
0
120
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页