上一页 1 2 3 4 5 6 7 8 9 ··· 44 下一页
摘要: LeetCode 530. Minimum Absolute Difference in BST (二叉搜索树的最小绝对差) 题目 链接 https://leetcode.cn/problems/minimum-absolute-difference-in-bst/ 问题描述 给你一个二叉搜索树的根 阅读全文
posted @ 2022-06-04 17:44 cheng102e 阅读(19) 评论(0) 推荐(0) 编辑
摘要: LeetCode 783. Minimum Distance Between BST Nodes (二叉搜索树节点最小距离) 题目 链接 https://leetcode.cn/problems/minimum-distance-between-bst-nodes/ 问题描述 给你一个二叉搜索树的根 阅读全文
posted @ 2022-06-04 17:43 cheng102e 阅读(14) 评论(0) 推荐(0) 编辑
摘要: LeetCode 98. Validate Binary Search Tree (验证二叉搜索树) 题目 链接 https://leetcode.cn/problems/validate-binary-search-tree/ 问题描述 给你一个二叉树的根节点 root ,判断其是否是一个有效的二 阅读全文
posted @ 2022-06-04 17:13 cheng102e 阅读(8) 评论(0) 推荐(0) 编辑
摘要: LeetCode 700. Search in a Binary Search Tree (二叉搜索树中的搜索) 题目 链接 https://leetcode.cn/problems/search-in-a-binary-search-tree/ 问题描述 给定二叉搜索树(BST)的根节点 root 阅读全文
posted @ 2022-06-03 16:17 cheng102e 阅读(15) 评论(0) 推荐(0) 编辑
摘要: LeetCode 513. Find Bottom Left Tree Value (找树左下角的值) 题目 链接 https://leetcode.cn/problems/find-bottom-left-tree-value/ 问题描述 给定一个二叉树的 根节点 root,请找出该二叉树的 最底 阅读全文
posted @ 2022-06-03 11:18 cheng102e 阅读(15) 评论(0) 推荐(0) 编辑
摘要: LeetCode 404. Sum of Left Leaves (左叶子之和) 题目 链接 问题描述 给定二叉树的根节点 root ,返回所有左叶子之和。 示例 输入: root = [3,9,20,null,null,15,7] 输出: 24 解释: 在这个二叉树中,有两个左叶子,分别是 9 和 阅读全文
posted @ 2022-06-03 09:45 cheng102e 阅读(11) 评论(0) 推荐(0) 编辑
摘要: LeetCode 257. Binary Tree Paths () 题目 链接 https://leetcode.cn/problems/binary-tree-paths/ 问题描述 给你一个二叉树的根节点 root ,按 任意顺序 ,返回所有从根节点到叶子节点的路径。 叶子节点 是指没有子节点 阅读全文
posted @ 2022-06-02 15:49 cheng102e 阅读(16) 评论(0) 推荐(0) 编辑
摘要: LeetCode 110. Balanced Binary Tree (平衡二叉树) 题目 链接 https://leetcode.cn/problems/balanced-binary-tree/ 问题描述 给定一个二叉树,判断它是否是高度平衡的二叉树。 本题中,一棵高度平衡二叉树定义为: 一个二 阅读全文
posted @ 2022-06-02 15:06 cheng102e 阅读(14) 评论(0) 推荐(0) 编辑
摘要: LeetCode 222. Count Complete Tree Nodes (完全二叉树的节点个数) 题目 链接 https://leetcode.cn/problems/count-complete-tree-nodes/ 问题描述 给你一棵 完全二叉树 的根节点 root ,求出该树的节点个 阅读全文
posted @ 2022-06-01 16:52 cheng102e 阅读(15) 评论(0) 推荐(0) 编辑
摘要: LeetCode 347. Top K Frequent Elements (前 K 个高频元素) 题目 链接 https://leetcode.cn/problems/top-k-frequent-elements/ 问题描述 给你一个整数数组 nums 和一个整数 k ,请你返回其中出现频率前 阅读全文
posted @ 2022-05-28 15:33 cheng102e 阅读(19) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 44 下一页