首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
啥也没有
清华大学
2019届
算法工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(21)
约瑟夫问题I
0
# -*- coding:utf-8 -*- class node: def __init__(self,x): self.val = x self.next = None class Joseph: def getResult(self,n, m):...
发表于 2017-05-16 10:46:30
双栈排序
0
# -*- coding:utf-8 -*- class TwoStacks: def twoStacksSort(self, numbers): # write code here fuzhu = [] while numbers: ...
发表于 2017-05-12 10:38:45
清除行列
0
class Clearer: def clearZero(self, mat, n): # write code here if not mat: return mat1 = zip(*mat) colu...
发表于 2017-05-08 10:57:31
像素翻转
0
class Transform: def transformImage(self, mat, n): # write code here mat.reverse() return zip(*mat)
发表于 2017-05-08 10:02:46
确定两串乱序同构
0
class Same: def checkSam(self, stringA, stringB): # write code here from collections import Counter return dict(Counter(st...
发表于 2017-05-06 16:04:14
基本字符串压缩
0
class Zipper: def zipString(self,iniString): # write code here if not iniString: return i = 0 ...
发表于 2017-05-06 15:46:35
原串翻转
0
class Reverse: def reverseString(self, iniString): # write code here if not iniString: return i = 0 a...
发表于 2017-05-06 15:00:24
构建乘积数组
0
# -*- coding:utf-8 -*- class Solution: def multiply(self, A): # write code here B = [] if not A or len(A) == 1: ...
发表于 2017-05-05 10:39:15
滑动窗口的最大值
0
# -*- coding:utf-8 -*- class Solution: def maxInWindows(self, num, size): # write code here res = [] if size == 0 or size ...
发表于 2017-05-05 10:32:59
二叉树的下一个结点
0
class Solution: def GetNext(self, pNode): # write code here def zhongxu(root,res): if not root: return...
发表于 2017-05-05 09:57:33
首页
上一页
1
2
3
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题