首页
学习
活动
专区
工具
TVP
发布

爱写Bug

公众号:爱写Bug
专栏作者
148
文章
109131
阅读量
27
订阅数
LeetCode 29:验证二叉搜索树 Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST).
爱写bug
2020-03-12
2970
二叉树的最近公共祖先 Lowest Common Ancestor of a Binary Tree
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
爱写bug
2020-03-12
8020
LeetCode 297:二叉树的序列化与反序列化 Serialize and Deserialize Binary Tree
序列化是将一个数据结构或者对象转换为连续的比特位的操作,进而可以将转换后的数据存储在一个文件或者内存中,同时也可以通过网络传输到另一个计算机环境,采取相反方式重构得到原数据。
爱写bug
2020-03-12
6200
LwwtCode 173:二叉搜索树迭代器 Binary Search Tree Iterator
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.
爱写bug
2020-03-12
4470
LeetCode 116: 填充每个节点的下一个右侧节点指针
给定一个完美二叉树,其所有叶子节点都在同一层,每个父节点都有两个子节点。二叉树定义如下:
爱写bug
2020-02-26
6360
LeetCode117:填充每个节点的下一个右侧节点指针 II
填充它的每个 next 指针,让这个指针指向其下一个右侧节点。如果找不到下一个右侧节点,则将 next 指针设置为 NULL。
爱写bug
2020-02-26
5150
LeetCode 105: 从前序与中序遍历序列构造二叉树
Given preorder and inorder traversal of a tree, construct the binary tree.
爱写bug
2020-02-26
3560
LeetCode 106: 从中序与后序遍历序列构造二叉树
Given inorder and postorder traversal of a tree, construct the binary tree.
爱写bug
2020-02-26
2980
LeetCode 101: 对称二叉树 Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
爱写bug
2020-02-18
3150
LeetCode 112: 路径总和 Path Sum
给定一个二叉树和一个目标和,判断该树中是否存在根节点到叶子节点的路径,这条路径上所有节点值相加等于目标和。
爱写bug
2020-02-18
6740
LeetCode 104: 二叉树的最大深度 Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.
爱写bug
2020-02-18
3820
树的遍历 Traverse a Tree
值得注意的是,当删除树中的节点时,删除过程将按照后序遍历的顺序进行。也就是说,当你删除一个节点时,你将首先删除它的左节点和它的右边的节点,然后再删除节点本身。
爱写bug
2020-01-02
1.1K0
LeetCode 652: 寻找重复的子树 Find Duplicate Subtrees
给定一棵二叉树,返回所有重复的子树。对于同一类的重复子树,你只需要返回其中任意一棵的根结点即可。
爱写bug
2019-11-20
6160
LeetCode 219: 存在重复元素 II Contains Duplicate II
给定一个整数数组和一个整数 k,判断数组中是否存在两个不同的索引 i 和 j,使得 nums [i] = nums [j],并且 i 和 j 的差的绝对值最大为 k。
爱写bug
2019-11-10
3090
LeetCode 94:二叉树的中序遍历 Binary Tree Inorder Traversal
Given a binary tree, return the inorder traversal of its nodes' values.
爱写bug
2019-08-21
3600
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档