首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
anybody
厦门大学
2017届
C++工程师
anybody
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(38)
删除链表中重复的结点
1
class Solution { public: //觉得好就给个赞吧 ListNode* deleteDuplication(ListNode* pHead) { if (!pHead || !pHead->next)return pHead; ListNode *hea...
发表于 2016-08-07 01:05:32
和为S的连续正数序列
1
class Solution { public: vector<vector<int> > FindContinuousSequence(int sum) { vector<vector<int>> res; if (sum < 3)r...
发表于 2016-08-06 00:11:10
选择在最近的过去很久未访问的页面予以淘汰的算法称为()。
8
OPT:Optimal page replacement algorithm最佳页面替换算法。 LRU:Least Recently Used 近期最少使用算法。 MFU:Most Frequently Used最常使用页面置换算法 LFU:Least Frequently Use...
发表于 2016-08-03 11:20:45
以下哪些不是内核对象?
26
临界区是非内核对象,只在用户态进行锁操作。 内核对象有:存取符号对象、事件对象、文件对象、文件映射对象、I / O完成端口对象、作业对象、信箱对象、互斥对象、管道对象、进程对象、信标对象、线程对象和等待计时器对象等。这些对象都是通过调用函数来创建的。
发表于 2016-08-03 11:10:47
把数组排成最小的数
1
class Solution { public: string PrintMinNumber(vector<int> numbers) { string res = ""; if (numbers.size() == 0)return res; vect...
发表于 2016-08-03 00:10:32
翻转单词序列
1
class Solution { public://题目未说要删除多余空格 string ReverseSentence(string str) { if (str.length() < 2)return str; int i = 0; while (i < str....
发表于 2016-08-02 23:00:05
二叉搜索树与双向链表
1
class Solution { public://一楼的牛兄太厉害,膜拜啊! TreeNode* Convert(TreeNode* pRootOfTree) { if (!pRootOfTree || (!pRootOfTree->left && !pRootOfT...
发表于 2016-08-02 10:01:12
数组中只出现一次的数字
1
class Solution { public://任重道远,继续学习。 int find_1(int res) { int index = 0; while ((res & 1) == 0) { index++; res >>= 1; } r...
发表于 2016-08-02 06:15:52
丑数
760
class Solution { public://别人的代码就是精简,惭愧啊,继续学习。 int GetUglyNumber_Solution(int index) { if (index < 7)return index; vector<int> res(ind...
发表于 2016-08-02 06:14:00
复杂链表的复制
1
class Solution { public://迷之代码 void nextnode(RandomListNode* pHead) { RandomListNode* p = pHead; while (p) { RandomListNode* q = new Random...
发表于 2016-08-02 06:11:58
首页
上一页
1
2
3
4
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题