首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
忆水寒
宁波大学
2017届
C++工程师
颓废躺~
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(203)
链表中环的入口结点
1
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: /...
发表于 2016-07-26 10:19:22
构建乘积数组
2
class Solution { public: vector<int> multiply(const vector<int>& A) { vector<int> vec; vec.push_back(1); ...
发表于 2016-07-25 14:37:02
扑克牌顺子
1
class Solution { public: bool IsContinuous( vector<int> numbers ) { if(numbers.size()<1) return false; sort(numbers.begin...
发表于 2016-07-25 11:13:51
左旋转字符串
0
class Solution { public: void Reverse(string& str,int begin,int end) { while(begin<end) { char temp=str[beg...
发表于 2016-07-25 10:46:34
翻转单词序列
0
class Solution { public: void Reverse(string& str,int begin,int end) { if(begin>=end) return; while(begin<end) { char temp=str[begin]; ...
发表于 2016-07-25 10:38:27
和为S的连续正数序列
0
class Solution { public: void Print(vector<vector<int>>& vec,int small,int big) { vector<int> temp; for(...
发表于 2016-07-25 10:01:51
旋转数组的最小数字
1
class Solution { public: int minNumberInRotateArray(vector<int> rotateArray) { if(rotateArray.size()<=0) return 0; sort(r...
发表于 2016-07-24 20:10:27
反转链表
1
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: //递归处理链表翻转 List...
发表于 2016-07-24 20:06:36
和为S的两个数字
1
class Solution { public: //此函数用于在vector中找到number数据,找到返回下标,否则返回-1; int Search(vector<int>& array,int number,int start,int end) { //int s...
发表于 2016-07-24 19:46:27
数组中重复的数字
1
class Solution { public: // Parameters: // numbers: an array of integers // length: the length of array numbers ...
发表于 2016-07-24 16:53:06
首页
上一页
10
11
12
13
14
15
16
17
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题