首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
lx的流星
上海交通大学
2020届
算法工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(240)
和为S的两个数字
0
# -*- coding:utf-8 -*- class Solution: def FindNumbersWithSum(self,array, tsum): # write code here list1={} lenth=len(arra...
发表于 2019-09-10 16:28:57
反转链表
0
# -*- coding:utf-8 -*- # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # 返回ListNo...
发表于 2019-09-10 14:58:28
数组中只出现一次的数字
0
# -*- coding:utf-8 -*- class Solution: # 返回[a,b] 其中ab是出现一次的两个数字 def FindNumsAppearOnce(self, array): # write code here list1=[...
发表于 2019-09-10 14:46:46
跳台阶
0
# -*- coding:utf-8 -*- class Solution: def jumpFloor(self,number): # write code here if number==1 or number==2: return...
发表于 2019-09-07 10:21:41
连续子数组的最大和
0
# -*- coding:utf-8 -*- class Solution: def FindGreatestSumOfSubArray(self, array): # write code here list1=[] lenth=len(ar...
发表于 2019-09-07 08:58:32
求1+2+3+...+n
0
# -*- coding:utf-8 -*- class Solution: def Sum_Solution(self, n): # write code here if n==1: return 1 else: ...
发表于 2019-09-06 14:17:40
二叉树的深度
0
# -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None cl...
发表于 2019-09-06 11:00:08
全排列
0
def dfs(p): if p==lenth: res.append(''.join(temp)) return else: for i in range(lenth): if visit[i]: ...
发表于 2019-09-05 10:53:47
打牌
0
def data1(a,b,lenth): result=False if lenth==1: for i in a: if i>b[0]: result=True brea...
发表于 2019-09-04 10:20:15
复数集合
0
while True: try: n=int(input().strip()) list1=[] for i in range(n): index=input().strip() if index...
发表于 2019-09-03 14:01:05
首页
上一页
1
2
3
4
5
6
7
8
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题