首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
jacean
大连理工大学
2017届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(18)
反转链表
0
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* Rever...
发表于 2016-03-31 00:15:54
链表中倒数第k个结点
0
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* FindK...
发表于 2016-03-30 23:35:57
调整数组顺序使奇数位于偶数前面
0
class Solution { public: void reOrderArray(vector<int> &array) { vector<int> jishu; vector<int> oushu; ...
发表于 2016-03-30 22:57:51
二进制中1的个数
0
减一置最后一位1为0,与原数想与将原数的最后一位1置0,如此,直到原数为0.
发表于 2016-03-30 18:12:37
矩形覆盖
0
看看还是斐波那契数列,定一个,剩余的再定, class Solution { public: int rectCover(int number) { if(number==0||number==1)return 1; int pp=1; int p=1;...
发表于 2016-03-30 18:05:30
跳台阶
0
class Solution { public: int jumpFloor(int number) { if(number==0)return 0; if(number==1)return 1; if(number==2)return 2; ...
发表于 2016-03-30 17:37:50
旋转数组的最小数字
0
class Solution { public: int minNumberInRotateArray(vector<int> rotateArray) { int length=rotateArray.size(); if(le...
发表于 2016-03-30 16:51:36
替换空格
0
class Solution { public: void replaceSpace(char *str,int length) { if(length>0&&str!=NULL){ int spacecount=0; fo...
发表于 2016-03-30 10:49:05
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题