首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
Niu`
复旦大学
2015届
C++工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(38)
丑数
0
class Solution { public: int GetUglyNumber_Solution(int index) { vector<int> ugly_nums; ugly_nums.reserve(index); ug...
发表于 2018-12-03 23:30:08
数字在升序数组中出现的次数
0
class Solution { public: int binSearch(const vector<int> data, int low, int high, double k) { while (low<=high) { ...
发表于 2018-11-30 22:29:31
两个链表的第一个公共结点
0
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public...
发表于 2018-11-30 22:17:25
二叉树的深度
0
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(N...
发表于 2018-11-30 21:43:19
二叉树中和为某一值的路径(二)
0
/* struct TreeNode { int val; struct TreeNode *left; struct TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(N...
发表于 2018-11-30 21:40:38
连续子数组的最大和
0
class Solution { public: int FindGreatestSumOfSubArray(vector<int> array) { int max = INT_MIN; int max_sum = 0; ...
发表于 2018-11-30 21:18:56
把数组排成最小的数
0
class Solution { public: void swap(string& a, string& b) { string temp = a; a = b; b = temp; } void so...
发表于 2018-11-29 23:03:05
和为S的两个数字
0
class Solution { public: vector<int> FindNumbersWithSum(vector<int> array,int sum) { int i=0; int j=array.size()-1; ...
发表于 2018-11-29 22:53:16
左旋转字符串
0
class Solution { public: void Rotate(int first, int spacing, string& str) { first %= spacing; char temp = str[first]; ...
发表于 2018-11-29 00:31:31
判断是不是平衡二叉树
0
class Solution { public: bool IsBalanced_Solution(TreeNode* pRoot, int& height) { if (pRoot==nullptr) { height=0; ...
发表于 2018-11-28 23:36:36
首页
上一页
1
2
3
4
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题