我只想要一个offer罢了
我只想要一个offer罢了
全部文章
分类
归档
标签
去牛客网
登录
/
注册
我只想要一个offer罢了的博客
全部文章
(共14篇)
题解 | #城市群数量#并查集
//并查集 class UnionFind { public: vector<int> parent;//记录父节点 int cnt;//连通分量 UnionFind(int n) { this->cnt = n; thi...
2023-05-06
0
300
题解 | #城市群数量#
class Solution { public: void re(vector<vector<int> >& m, int i) { //把跟i相连的城市化0 for (int k = 0; k < m.size(); k++) { ...
2023-05-06
0
327
题解 | #城市群数量#
class Solution { public: int citys(vector<vector<int> >& m) { int n = m.size();//城市数量 int count = 0; queue<...
2023-05-06
0
582
题解 | #岛屿数量#
class Solution { public: //0跳,重复跳 int dirt[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}}; int solve(vector<vector<char> >& grid) { ...
2023-05-05
0
294
题解 | #岛屿数量#
class Solution { public: //0跳,重复跳 int dirt[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}}; void re(vector<vector<char> >& grid, int i,...
2023-05-05
0
288
题解 | #矩阵最长递增路径#
class Solution { //图论解法,以出度为0为一层的开始。 public: //记录四个方向 int dirs[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}}; int n, m; int solve(vecto...
2023-05-04
0
266
题解 | #【模板】拓扑排序#
#include<iostream> #include<vector> #include<queue> #define MAX 200001 using namespace std; int main() { int n, m; cin>&...
2023-05-01
0
553
题解 | #字符串排序#
#include <bits/stdc++.h> using namespace std; int main() { string str; cin>>str; multiset<string> m_s;//默认排序从小到大//有序且可重...
2023-03-31
0
205
题解 | #句子逆序#
#include <bits/stdc++.h> #include <vector> using namespace std; int main() { vector<string> vec; string str; while(cin&...
2023-03-31
0
273
题解 | #字符串反转#
#include <bits/stdc++.h> using namespace std; int main() { string str; cin>>str; reverse(str.begin(),str.end()); cout<...
2023-03-31
0
285
首页
上一页
1
2
下一页
末页