首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
就多贡献python代码吧
华东师大
2018届
算法工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(16)
从上往下打印二叉树
0
# -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None cl...
发表于 2017-09-23 02:59:24
栈的压入、弹出序列
0
# -*- coding:utf-8 -*- class Solution: def IsPopOrder(self, pushV, popV): # write code here stack=[] for pop_num in popV: ...
发表于 2017-09-23 02:51:10
包含min函数的栈
0
# -*- coding:utf-8 -*- import sys class Solution: def __init__(self): self.stack=[] self.min_value=sys.maxint self._min=[]...
发表于 2017-09-23 02:33:31
顺时针打印矩阵
0
# -*- coding:utf-8 -*- class Solution: # matrix类型为二维列表,需要返回列表 def printMatrix(self, matrix): # write code here def turn(matrix...
发表于 2017-09-23 01:33:31
跳跃游戏-ii
0
class Solution { public: int jump(int A[], int n) { if(n<=1) return 0; int step=0,start=0,end=0; int maxEnd; wh...
发表于 2017-09-22 23:45:21
树的子结构
0
# -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None cl...
发表于 2017-04-27 17:36:13
合并两个排序的链表
0
# -*- coding:utf-8 -*- # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # 返回合并后列表 ...
发表于 2017-04-26 21:46:13
斐波那契数列
0
# -*- coding:utf-8-*- classFibs: def __init__(self): self.a=0 self.b=1 def next(self): self.a,...
发表于 2016-03-22 22:47:35
二维数组中的查找
0
# -*- coding:utf-8-*- classSolution: # array 二维列表 def Find(self, array, target): # write code here forx in...
发表于 2016-03-20 23:18:19
替换空格
0
# -*- coding:utf-8-*- classSolution: # s 源字符串 def replaceSpace(self, s): # write code here temp=list(s) ...
发表于 2016-03-20 23:17:50
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题