首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
但求八月九月好运!
亳州职业技术学院
2020届
C++工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(139)
字符串排列
1
//标志位法 class Permutation { public: static bool cmp(const string str1,const string str2) { return str1>str2; } void permutation(...
发表于 2019-05-24 21:16:31
集合的子集
0
class Subset { public: vector<vector<int> > getSubsets(vector<int> A, int n) { vector<vector<int> >res; ...
发表于 2019-05-23 08:45:26
约瑟夫环是一个数学应用题:已知n个人(编号1、2、..n)围坐在一张圆桌周...
0
//方法很多 #include <iostream> #include<vector> #include<algorithm> usingnamespacestd; voidgetpop(vector<int>&...
发表于 2019-05-18 15:50:35
好奇的薯队长
4
#include<iostream> using namespace std; int main() { long long res = 0,n; long long left=0, right = 0, base = 1; cin>...
发表于 2019-05-17 11:48:11
树的不同形态
3
#include<iostream> #include<vector> #include<cstdio> #include<string> #include<cstring> using namespace std; struct Tree...
发表于 2019-05-17 10:50:24
机器人走方格II
0
//dp法 动态转换函数为dp[i][j]=(dp[i-1][j]+dp[i][j-1]) class Robot { const long md=1000000007; public: int countWays(vector<vector<int> > ...
发表于 2019-05-15 21:16:37
机器人走方格I
1
//就很简单哦 class Robot { public: int countWays(int x, int y) { if(x==1||y==1) return 1; return countWays(x,y-1)+countWays(x-1,y); ...
发表于 2019-05-15 20:28:34
穿点最多的直线
0
class DenseLine { public: vector<double> getLine(vector<Point> p, int n) { vector<double>ans; double diffx,dif...
发表于 2019-05-15 20:07:57
最接近的数
0
//这就比较尴尬了,简单的加减搞定! class CloseNumber { public: vector<int> getCloseNumber(int x) { vector<int>res; int temp=x; ...
发表于 2019-05-14 20:43:57
加法运算替代
0
//这题目有什么意义? class AddSubstitution { public: int calc(int a, int b, int type) { int ans; if(type==1) { ans=max(...
发表于 2019-05-13 19:41:13
首页
上一页
3
4
5
6
7
8
9
10
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题