牛客710153440号
牛客710153440号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客710153440号的博客
全部文章
(共18篇)
题解 | 旋转图像
#include <vector> class Solution { public: void rotate(vector<vector<int> > &matrix) { if(matrix.empty()) return; ...
2025-09-08
0
0
题解 | 螺旋矩阵-ii
class Solution { public: /** * * @param n int整型 * @return int整型vector<vector<>> */ vector<vector<int&g...
2025-09-07
0
7
题解 | 求平方根
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param x int整型 * @return int整型 */ in...
2025-09-06
0
7
题解 | 爬楼梯
class Solution { public: /** * * @param n int整型 * @return int整型 */ int climbStairs(int n) { // write code...
2025-09-06
0
5
题解 | 矩阵置0
#include <vector> class Solution { public: void setZeroes(vector<vector<int> > &matrix) { int n = matrix[0].size(); ...
2025-09-06
0
7
题解 | 排列颜色
#include <any> #include <type_traits> #include <vector> class Solution { public: void sortColors(int A[], int n) { int l...
2025-09-06
0
6
题解 | 二叉树的最大深度
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {...
2025-09-05
0
11
题解 | 买卖股票的最好时机 ii
class Solution { public: /** * * @param prices int整型vector * @return int整型 */ int maxProfit(vector<int>& price...
2025-09-05
0
10
题解 | 求二叉树的前序遍历
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ #include <stack> #include <vector> cl...
2025-09-05
0
10
题解 | 访问单个节点的删除
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) {} };*/ class Remove { public: bool removeNo...
2025-09-04
0
9
首页
上一页
1
2
下一页
末页