牛客马MAXEY
牛客马MAXEY
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客马MAXEY的博客
TA的专栏
68篇文章
1人订阅
2024考研数据结构
68篇文章
306人学习
全部文章
(共66篇)
【2024考研】题解17 | #二叉树的最大深度#简谐美
来自专栏
#include <algorithm> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param root TreeNode类 ...
2023-09-22
0
163
【2024考研】题解16 | #求二叉树的层序遍历#
来自专栏
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2023-09-22
0
306
【2024考研】题解14 | #二分查找-I#
来自专栏
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param target int整型...
2023-09-21
0
160
【2024考研】题解13 | #删除有序链表重复元素II#
来自专栏
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2023-09-21
0
170
【2024考研】题解12 | #删除有序链表中重复元素I#
来自专栏
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <cstddef> class ...
2023-09-20
0
191
【2024考研】题解11 | #链表的奇偶重排#
来自专栏
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2023-09-20
0
184
【2024考研】题解10 | #判断一个链表是否为回文结构#
来自专栏
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <algorithm> #inc...
2023-09-20
0
136
【2024考研】题解9 | #两个链表的第一个公共结点#
来自专栏
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* FindF...
2023-09-20
0
132
【2024考研】题解8 | #删除链表的倒数第n个节点#
来自专栏
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ #include <cstddef> class ...
2023-09-20
0
150
【2024考研】题解7 | #链表中倒数最后k个结点#
来自专栏
/**(傻逼题)尾指针一直倒数着 * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { p...
2023-09-19
0
180
首页
上一页
1
2
3
4
5
6
7
下一页
末页