有胆量的柯基在学习
有胆量的柯基在学习
全部文章
分类
归档
标签
去牛客网
登录
/
注册
有胆量的柯基在学习的博客
全部文章
(共112篇)
题解 | 把字符串转换成整数(atoi)
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @return int整型 */ ...
2025-09-11
0
9
题解 | 多叉树的直径
/** * struct Interval { * int start; * int end; * Interval(int s, int e) : start(start), end(e) {} * }; */ class Solution { public: /**...
2025-09-11
0
9
题解 | 字符串出现次数的TopK问题
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * return topK string * @param strings string字符串vector ...
2025-09-11
0
8
题解 | 拼接所有的字符串产生字典序最小的字符串
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param strs string字符串vector the strings * @re...
2025-09-09
0
10
题解 | 完全二叉树结点数
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullpt...
2025-09-09
0
13
题解 | 连续子数组的最大乘积
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @return int整型 ...
2025-09-09
0
10
题解 | 二叉搜索树的第k个节点
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullpt...
2025-09-09
0
16
题解 | 数字在升序数组中出现的次数
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param k int整型 ...
2025-09-08
0
11
题解 | 扑克牌顺子
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param numbers int整型vector * @return bool布尔型 ...
2025-09-08
0
12
题解 | 找到搜索二叉树中两个错误的节点
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullpt...
2025-09-08
0
14
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页