首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
梦飞1014
中山大学
2020届
Java工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(18)
连续子数组的最大和
0
class Solution { public: int FindGreatestSumOfSubArray(vector<int> array) { if(array.empty()){ return 0; } ...
发表于 2019-09-07 17:38:54
最小的K个数
0
最大堆: class Solution { public: vector<int> GetLeastNumbers_Solution(vector<int> input, int k) { vector<int> res; ...
发表于 2019-04-03 21:54:04
数组中出现次数超过一半的数字
0
class Solution { public: int MoreThanHalfNum_Solution(vector<int> numbers) { int count[10]; for(int i = 0; i < 10; i++){ ...
发表于 2019-04-03 18:06:57
复杂链表的复制
0
class Solution { public: RandomListNode* Clone(RandomListNode* pHead) { if(pHead == NULL) return NULL; RandomListNode* node; ...
发表于 2019-03-25 13:12:39
从上往下打印二叉树
0
class Solution { public: vector<int> PrintFromTopToBottom(TreeNode* root) { vector<int> res; queue<TreeNode*> q;...
发表于 2019-03-24 10:11:48
栈的压入、弹出序列
0
class Solution { public: bool IsPopOrder(vector<int> pushV,vector<int> popV) { stack<int> s; int out = 0; ...
发表于 2019-03-24 09:59:30
反转链表
0
class Solution { public: ListNode* ReverseList(ListNode* pHead) { ListNode* p = NULL; vector<int> v; ListNode* node ...
发表于 2019-03-16 12:24:23
链表中倒数第k个结点
0
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public...
发表于 2019-03-16 10:11:27
调整数组顺序使奇数位于偶数前面
0
class Solution { public: void reOrderArray(vector<int> &array) { vector<int> odd; vector<int> even; ...
发表于 2019-03-16 09:48:24
二进制中1的个数
0
class Solution { public: int NumberOf1(int n) { int count = 0; int bits = sizeof(n) * 8; for(int i = 0; i < bits; ...
发表于 2019-03-16 09:13:41
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题