首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
忆水寒
宁波大学
2017届
C++工程师
颓废躺~
关注
私信
加入黑名单
举报TA
TA的博客
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(203)
魔术索引I
0
//基于二分查找思路,时间复杂度为o(logN) bool findMagicIndex(vector<int> A, int n) { // write code here if(A.size()<=0) return true; ...
发表于 2016-08-17 16:08:35
字符串排序
0
#include<iostream> #include<string> #include<vector> #include<map> #include<algorithm> using namespace std; int main() ...
发表于 2016-08-15 09:35:41
出现一次的数字ii
1
class Solution { public: int singleNumber(int A[], int n) { int bit[32]={0}; int res=0; for(int i=0;i<32;i++) {...
发表于 2016-08-14 21:52:01
字符串链接
0
#include<iostream> #include<cstdio> #include<cstring> using namespace std; string MyStrcat(char dstStr[],char srcStr[]) { string ...
发表于 2016-08-14 21:35:43
统计单词
0
#include<iostream> #include<cstdio> #include<string> using namespace std; void Count(string& str) { if(str.length()<=0) retu...
发表于 2016-08-14 21:24:09
IP地址
4
//代码独立开来; #include<iostream> #include<vector> #include<algorithm> #include<cmath> #include<stack> using namespace std; i...
发表于 2016-08-14 20:56:12
维护x的秩
0
//先用暴力的方法试试看,也AC了; class Rank { public: vector<int> getRankOfNumber(vector<int> A, int n) { // write code here vector&...
发表于 2016-08-14 17:47:19
数组中的逆序对
1
class AntiOrder { public: int count(vector<int> data, int n) { // write code here if(data.size()<=1) return 0; in...
发表于 2016-08-14 17:32:58
另类加法
0
class UnusualAdd { public: int addAB(int A, int B) { // write code here int sum,carry; do { sum=A^B; ...
发表于 2016-08-14 17:20:33
机器人走方格II
0
//其实和上一个“机器人走方格一样”,变化的就是障碍的地方填上0就行; class Robot { public: int countWays(vector<vector<int> > map, int x, int y) { // write cod...
发表于 2016-08-14 16:57:12
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题