首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
但求八月九月好运!
亳州职业技术学院
2020届
C++工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(139)
两数之和
0
//对撞指针 class Solution { public: vector<int> twoSum(vector<int> &numbers, int target) { vector<int>res; if(n...
发表于 2019-08-05 08:20:49
最小的K个数
0
class Solution { public: void part_hs(vector<int>&obj,int size,int index) { int left=2*index+1,right=2*index+2,Max=index; ...
发表于 2019-07-18 21:04:01
字符串的排列
1
class Solution { public: void dfs(vector<string>&ans,string s,int depth) { if(depth==s.size()) ans.push_back(s); for...
发表于 2019-07-12 21:14:54
二叉树中和为某一值的路径(二)
0
class Solution { public: static bool cmp(const vector<int>v1,const vector<int>v2) { return v1.size()>v2.size(); } ...
发表于 2019-07-11 19:45:07
二叉搜索树的后序遍历序列
0
class Solution { public: bool Judge(vector<int>&v,int l,int r) { if(l>=r) return true; int mid=r; while(l...
发表于 2019-07-10 21:35:17
树的子结构
0
class Solution { public: bool isSubtree(TreeNode* p1, TreeNode* p2) { if(!p2) return true; if(!p1) return false; if(p1...
发表于 2019-07-08 21:25:13
调整数组顺序使奇数位于偶数前面
0
//插入排序的思想 class Solution { public: void reOrderArray(vector<int> &array) { for(int i=1;i<array.size();++i){ if(ar...
发表于 2019-07-07 22:02:33
二维数组中的查找
0
class Solution { public: bool Find(int target, vector<vector<int> > array) { int row=array.size(); int col=array[0].si...
发表于 2019-06-26 20:12:37
迷路的牛牛
0
#include<iostream> #include<string> using namespace std; char TranDir(char LorR,char NowDir) { if(NowDir=='N') { switch(Lo...
发表于 2019-06-25 21:36:36
走格子
2
//bfs class Flood { public: int visited[102][102]={0}; int offset[4][2]={1,0,0,1,-1,0,0,-1}; int floodFill(vector<vector<int> >...
发表于 2019-06-23 20:42:51
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题