首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
anybody
厦门大学
2017届
C++工程师
anybody
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(38)
字符串的排列
3
class Solution { public: set<string> res; void fun(string str, int pos) { if (pos == str.length()) { res.insert(str); return; } ...
发表于 2016-08-01 15:22:53
二叉树中和为某一值的路径(二)
73
class Solution { public: vector<vector<int>> res; vector<int> path; void find(TreeNode* root, int sum) { if (root == NULL)r...
发表于 2016-08-01 11:41:49
最小的K个数
10
class Solution { public: int partion(vector<int>& input, int beg, int end) { int key = input[beg]; while (beg < end) { while (...
发表于 2016-07-31 23:46:48
路灯
4
#include <iostream> #include <vector> #include <algorithm> #include <iomanip> using namespace std; int main() { int n, L, i; ...
发表于 2016-07-31 15:02:25
奖学金
5
#include <iostream> #include <map> using namespace std; int main() { //用STL写才更有挑战性,结构体弱爆了。 long n, r, avg, i; while (cin >> ...
发表于 2016-07-31 14:35:46
二叉树
2
class Tree{ public: int min_key = INT_MAX; int min_level; int max_level; int max_key = INT_MIN; void find_min_max(TreeNode* root, int level) { ...
发表于 2016-07-30 15:23:28
比较重量
4
class Cmp { public://论测试数据的重要性,还好小伙伴们及时发现。 int cmp(int g1, int g2, vector<vector<int> > records, int n) { int i, j, x; for (i = 0;...
发表于 2016-07-30 14:16:18
数组中出现次数超过一半的数字
8
class Solution { public: //觉得好就给个赞吧 int MoreThanHalfNum_Solution(vector<int> numbers) { if (numbers.size() == 0)return 0; i...
发表于 2016-07-25 22:46:33
栈的压入、弹出序列
3
class Solution { public: bool IsPopOrder(vector<int> pushV, vector<int> popV) { int i = 0, j = 0, len = pushV.size(); stack<int>...
发表于 2016-07-25 00:16:36
从上往下打印二叉树
1
//此代码稍微修改可解决分层次打印二叉树。 class Solution { public: vector<int> PrintFromTopToBottom(TreeNode *root) { vector<int> res; if (root == NUL...
发表于 2016-07-24 23:34:57
首页
上一页
1
2
3
4
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题