wydxry
wydxry
全部文章
分类
题解(86)
归档
标签
去牛客网
登录
/
注册
wydxry的博客
全部文章
(共91篇)
题解 | #孩子们的游戏(圆圈中最后剩下的数)#
class Solution { public: int LastRemaining_Solution(int n, int m) {  ...
2022-08-27
0
330
题解 | #兑换零钱#
#include <bits/stdc++.h> using namespace std; const int N = 1e4 + 10; int v[N], w[N],&nbs...
C++
2022-07-27
1
427
题解 | #最少的完全平方数#
#include <bits/stdc++.h> using namespace std; const int N = 1e2 + 10; const int M =&...
C++
2022-07-27
0
438
题解 | #最小花费爬楼梯#
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int a[N], n, f...
C++
2022-07-26
0
347
题解 | #有多少个不同的二叉搜索树#
#include <bits/stdc++.h> using namespace std; int a[25], n; int main() { cin >>...
C++
2022-07-26
0
351
题解 | #把二叉树打印成多行#
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(N...
C++
2022-04-19
0
356
题解 | #数据流中的中位数#
class Solution { public: priority_queue<int> qmin; priority_queue<int, vector<int>, greater<int>> qmax; void Inser...
C++
2022-04-19
0
394
题解 | #正则表达式匹配#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param str string字符串 * @param pattern string字...
C++
2022-04-19
0
376
题解 | #二叉树中的最大路径和#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { public: /** * * @...
C++
2022-04-19
0
391
题解 | #最小生成树#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 返回最小的花费代价使得这n户人家连接起来 * @param n int n户人家的村庄 * @pa...
C++
2022-04-19
0
442
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页