首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
牛客107898号
Stanford University
2020届
算法工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(49)
剪绳子
0
# -*- coding:utf-8 -*- class Solution: def cutRope(self, number): # write code here result = [1, 1] if number == 2: return...
发表于 2019-09-27 21:37:07
字符流中第一个不重复的字符
0
class Solution: # 返回对应char def __init__(self): self.unselect = [] self.selected = [] def FirstAppearingOnce(self): ...
发表于 2019-09-23 11:08:06
牛牛找工作
0
这***用例被截断了啊
发表于 2019-09-22 15:51:34
正则表达式匹配
0
class Solution: # s, pattern都是字符串 def match(self, s, pattern): # write code here p = pattern memo = dict() # 备忘录 ...
发表于 2019-09-22 14:52:24
构建乘积数组
0
class Solution: def multiply(self, A): # write code here res = [1 for _ in A] for i in range(1, len(A)): res[i...
发表于 2019-09-22 14:12:59
把字符串转换成整数
0
# -*- coding:utf-8 -*- class Solution: def StrToInt(self, s): # write code here if s == '': return 0 pool = [str(i) ...
发表于 2019-09-22 13:28:10
机器人跳跃问题
0
例三最后的能力就不是0啊。。为啥假设最后的能量是0?
发表于 2019-09-22 11:53:43
找零
0
这不典型贪心算法吗。。根动归有啥关系?
发表于 2019-09-22 11:43:04
特征提取
0
import sys input = [] for line in sys.stdin: input.append(line.strip().split()) counter = {} last = [] for data in input[2:]: tmp = [] for...
发表于 2019-09-22 10:39:56
万万没想到之聪明的编辑
1
import sys input = [] for line in sys.stdin: input.append(line.strip().split()) def correcter(s): i = 0 while True: if i >= len...
发表于 2019-09-21 22:02:45
首页
上一页
1
2
3
4
5
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题