首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
不多不多,offer就要五个
哈尔滨工业大学
2020届
算法工程师
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(17)
二叉树中和为某一值的路径(二)
0
两种方法:一种递归 / 一种栈 # -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # ...
发表于 2019-07-15 18:58:04
二叉搜索树的后序遍历序列
0
# -*- coding:utf-8 -*- class Solution: def VerifySquenceOfBST(self, sequence): # write code here if not sequence: retu...
发表于 2019-07-15 18:28:30
从上往下打印二叉树
0
# -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None cl...
发表于 2019-07-13 14:26:14
栈的压入、弹出序列
0
# -*- coding:utf-8 -*- class Solution: def IsPopOrder(self, pushV, popV): # write code here if len(pushV) != len(popV): ...
发表于 2019-07-13 10:18:11
顺时针打印矩阵
0
所有情况均有第一行 行数>=3下都有第二列,要刨去头尾 行数>=2下都有第二行 行数>=3且列数>=2下都有第一行,要刨去头尾 # -*- coding:utf-8 -*- class Solution: # matrix类型为二维列表,需要返...
发表于 2019-07-12 20:01:26
包含min函数的栈
0
# -*- coding:utf-8 -*- class Solution: def __init__(self): self.stack = [] self.min_stack = [] def push(self, node): s...
发表于 2019-07-11 21:57:23
树的子结构
0
---> 递归,两个函数的区分要清楚 # -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # ...
发表于 2019-07-11 21:04:49
合并两个排序的链表
0
# -*- coding:utf-8 -*- # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # 返回合并后列表 ...
发表于 2019-07-11 19:49:16
反转链表
0
class Solution: # 返回ListNode def ReverseList(self, pHead): # write code here last = None while pHead: tmp ...
发表于 2019-07-10 21:32:03
链表中倒数第k个结点
0
class Solution: def FindKthToTail(self, head, k): # write code here if not head or not k: return p1, p2 = hea...
发表于 2019-07-10 21:21:45
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题