首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
freezerhan
暨南大学
2022届
C++工程师
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(33)
序列维护
1
二分 + 线段树区间更新 模板题 #include <bits/stdc++.h> using namespace std; class segtree{ public: int n; int* data; int* tree; int* lazy; segtr...
发表于 2020-09-12 11:10:26
牛妹的面试
1
// 求两次最长上升子序列即可 int mountainSequence(vector<int>& numberList) { vector<int> ans; auto Find = [&](int l, int r, int key) ->i...
发表于 2020-03-27 11:01:12
牛能和牛可乐的礼物
1
dp难理解我们完全可以用记忆化搜索 int maxPresent(vector<int>& presentVec) { // write code here int sum = 0; int n = (int)presentVe...
发表于 2020-03-25 20:26:11
字符串价值
0
#include <bits/stdc++.h> using namespace std; int Count[26]; priority_queue<int> que; int main() { string s; cin >> s; int ...
发表于 2020-03-13 18:53:04
疯狂队列
1
#include <bits/stdc++.h> using namespace std; int a[55], mark[55]; deque<int> d; int main() { int n; cin >> n; for (int i ...
发表于 2020-02-18 23:30:32
浇花
1
#include <bits/stdc++.h> #define ll long long using namespace std; ll Dist(ll x1, ll y1, ll x2, ll y2) { return (x1 - x2) * (x1 - x2) + (y1 -...
发表于 2019-11-29 14:11:33
图的遍历
0
#include <bits/stdc++.h> using namespace std; const int N = (int)1e5 + 10; vector <int> G[N]; int mark[N]; int dfs1(int u) { mark[u] ...
发表于 2019-11-29 09:54:29
判断一棵满二叉树是否为二叉搜索树
1
#include <bits/stdc++.h> using namespace std; vector <int> tree; bool ret; void read() { int num = 0; char ch; while ((ch = getchar(...
发表于 2019-11-29 08:59:17
机器人移动范围
1
#include <bits/stdc++.h> using namespace std; int mark[110][110]; int dx[4] = {-1, 1, 0, 0}; int dy[4] = {0, 0, -1, 1}; int ret; bool check(i...
发表于 2019-11-29 08:44:24
字符串最小变换次数
1
#include <bits/stdc++.h> using namespace std; int dp[1010][1010]; string s1, s2; int Min(int x, int y, int z) { return min(x, min(y, z)); } ...
发表于 2019-11-28 09:04:11
首页
上一页
1
2
3
4
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题