首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
oo-┈→駭孓気℡~
浙江大学
2018届
算法工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(15)
All Roads Lead to Rome (30)
0
//把Dijkstra里面的else去掉 竟然就错了,实在是想不通,有人懂吗 #include <iostream> #include <vector> #include <string> #include <stack> #include <m...
发表于 2016-12-08 19:18:43
确定字符互异
0
写个python吧 # -*- coding:utf-8 -*- import re class Different: def checkDifferent(self, iniString): return 0 if re.match(r".*(....
发表于 2016-11-29 14:10:42
数据流中的中位数
1
为什么没人用 红黑树,我来写一个 multiset<int,greater<int>> maxS; multiset<int,less<int>> minS; void Insert(int num) { if (maxS.si敏感词S.si...
发表于 2016-11-26 21:00:21
Pop Sequence (25)
0
超级简单的做法 #include <iostream> #include <vector> #include <string> #include <stack> #include <algorithm>...
发表于 2016-11-23 21:27:56
1071. Speech Patterns (25)
0
杀鸡用牛刀,python 正则表达式 import re pattern = re.compile(r"[a-zA-Z0-9]+") S = raw_input().lower() words = pattern.findall(S) numOfwords = {} for ...
发表于 2016-11-22 22:00:25
斐波那契数列
0
python 版 # -*- coding:utf-8 -*- class Solution: def Fibonacci(self, n): a,b,i = 0,1,0 while i < n: a,b = b,a+b ...
发表于 2016-11-17 19:43:01
Gas Station (30)
0
总觉得好奇怪,在合法的加油站里选出一个加油站,要求它到最近房间的距离尽可能小,如果相等,再让它到所有房间的平均距离尽可能小,如果还相等,要加油站的编号尽可能小。那测试用例中G2才是答案啊,最短的距离是1,平均距离是11/4=2.75。答案怎么会是G1呢,真是日了狗了
发表于 2016-10-27 15:14:16
Graduate Admission (30)
0
牛客上非要说我错, PAT上是对的,郁闷啊。 #include <iostream> #include <vector> #include <algorithm> using namespace std; struct Applicant { int ...
发表于 2016-10-23 12:10:01
Cars on Campus (30)
3
题目是不难,思路一下子就会有,就是老是超时,超时超时
发表于 2016-10-22 12:28:44
Tree Traversals Again (25)
0
在PAT官网上可以通过,牛客上数据太强了 #include <iostream> #include <cstdio> #include <stack> #include <vector> #include <string> using n...
发表于 2016-09-15 22:08:04
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题