首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
老老实实写代码
门头沟学院
2020届
Java工程师
尘埃落定
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(19)
机器人的运动范围
0
python 回溯法 # -*- coding:utf-8 -*- class Solution: def __init__(self): self.count=0 def movingCount(self, threshold, rows, cols): ...
发表于 2019-08-21 21:50:10
数组中的逆序对
0
python 解法 参考书上的思路 # -*- coding:utf-8 -*- class Solution: def InversePairs(self,data): length = len(data) if not data or...
发表于 2019-08-20 16:04:14
矩阵中的路径
0
python 回溯解法 # -*- coding:utf-8 -*- class Solution: def hasPath(self, matrix, rows, cols, path): # write code here flag = [0 for ...
发表于 2019-08-18 19:38:32
按之字形顺序打印二叉树
0
class Solution: def Print(self, pRoot): # write code here flag = 1 if not pRoot: return [] queue = [pR...
发表于 2019-05-31 17:58:12
判断是不是平衡二叉树
0
python solution # -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # sel...
发表于 2019-05-29 11:38:43
两个链表的第一个公共结点
1
Python solution(暴力遍历法)时间复杂度O(mn) # -*- coding:utf-8 -*- # class ListNode: # def __init__(self, x): # self.val = x # self.next = N...
发表于 2019-05-29 09:36:46
链表中环的入口结点
0
Python solution 第一步,确定一个链表中是否包含环(设置快慢指针,从头结点出发,快慢指针能相遇说明一定存在环) 第二步,找到环的入口(从相遇点出发计数,再回到相遇点就能统计出环中节点个数n,然后设置俩指针,第一个指针从头结点出发先走n步,第二个指针再走。当第二个指针...
发表于 2019-05-28 23:20:01
复杂链表的复制
0
python solution 参照书上给的思路 # -*- coding:utf-8 -*- # class RandomListNode: # def __init__(self, x): # self.label = x # self.next ...
发表于 2019-05-28 21:31:48
字符串的排列
0
python solution # -*- coding:utf-8 -*- class Solution: def __init__(self,result=[]): self.result = result def Permutation(self, ss):...
发表于 2019-05-28 15:02:21
链表中倒数第k个结点
0
class Solution: def FindKthToTail(self, head, k): # write code here if not head: return None if k==0: ...
发表于 2019-05-22 10:42:58
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题