首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
努力冲鸭
国家开放大学
2019届
C++工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(7)
连续子数组的最大和
0
python # -*- coding:utf-8 -*- class Solution: def FindGreatestSumOfSubArray(self, array): # write code here res = array[0] ...
发表于 2018-04-22 08:56:18
数组中出现次数超过一半的数字
0
python # -*- coding:utf-8 -*- class Solution: def MoreThanHalfNum_Solution(self, numbers): # write code here dic = {} if ...
发表于 2018-04-21 21:08:39
用递归函数和栈操作逆序栈
0
python: # -*- coding:utf-8 -*- def rever(stack,top,list1): if top!=0: list1.append(stack.pop()) top -= 1 rever(stack,top...
发表于 2017-10-26 14:21:53
相邻最大差值
0
python # -*- coding:utf-8 -*- class MaxDivision: def findMaxDivision(self, A, n): # write code here sor = sorted(A) back...
发表于 2017-10-26 11:14:00
顺时针旋转矩阵
0
python的解法: # -*- coding:utf-8 -*- class Solution: def rotateMatrix(self, mat, n): # write code here fir = mat.pop() ...
发表于 2017-10-26 10:57:06
字符串的旋转
0
python一句话搞定了 # -*- coding:utf-8 -*- class StringRotation: def rotateString(self, A, n, p): # write code here return A[p+1:]+A[...
发表于 2017-10-25 14:58:29
之字形打印矩阵
0
python 写的 # -*- coding:utf-8 -*- class Printer: def printMatrix(self, mat, n, m): # write code here flag = 1 list1 = [] ...
发表于 2017-10-25 14:53:23
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题