珊珊呀!
珊珊呀!
全部文章
分类
题解(18)
归档
标签
去牛客网
登录
/
注册
珊珊呀!的博客
全部文章
(共17篇)
题解 | #【模板】单源最短路2#
# include<iostream> # include<vector> # include<queue> # include<algorithm> # include<cstdio> using namespace std; cons...
C++
spfa
单源最短路模板
无向图
2022-06-09
1
325
题解 | #【模板】单源最短路1#
# include<iostream> # include<vector> # include<queue> using namespace std; const int N = 5001; int n, m; int dist[N]; bool vis[N]...
C++
spfa
2022-06-09
0
390
题解 | #Sudoku#
# include<iostream> # include<vector> using namespace std; vector<vector<int>> sudoku(9, vector<int>(9, 0)); vector<...
C++
深度优先搜索
回溯
数独
2022-06-08
0
261
题解 | #字符串分隔#
# include<stdio.h> # include<unordered_map> # include<vector> # include<string.h> using namespace std; // 方法一: 聪明的方法,调用函数更快乐~...
C++
2022-05-15
0
286
题解 | #明明的随机数#
# include<stdio.h> # include<unordered_map> # include<vector> using namespace std; int main(){ unordered_map<int, int> m...
C++
哈希表
2022-05-15
0
225
题解 | #判断是不是完全二叉树#
* struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * ...
C++
二叉树
2022-03-06
0
516
题解 | #判断是不是二叉搜索树#
* struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * ...
C++
二叉树
2022-03-06
0
379
题解 | #二叉树的镜像#
* struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * ...
C++
二叉树
2022-03-06
0
322
题解 | #对称的二叉树#
struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL...
C++
二叉树
2022-03-06
0
317
题解 | #二叉树中和为某一值的路径(一)#
* struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ class Solution { public: /** * * @param...
C++
二叉树
2022-03-06
0
263
首页
上一页
1
2
下一页
末页