摘要: LeetCode 669. Trim a Binary Search Tree (修剪二叉搜索树) 题目 链接 https://leetcode.cn/problems/trim-a-binary-search-tree/ 问题描述 给你二叉搜索树的根节点 root ,同时给定最小边界low 和最大 阅读全文
posted @ 2022-06-10 16:29 cheng102e 阅读(18) 评论(0) 推荐(0) 编辑
摘要: LeetCode 450. Delete Node in a BST (删除二叉搜索树中的节点) 题目 链接 https://leetcode.cn/problems/delete-node-in-a-bst/ 问题描述 给定一个二叉搜索树的根节点 root 和一个值 key,删除二叉搜索树中的 k 阅读全文
posted @ 2022-06-10 16:11 cheng102e 阅读(16) 评论(0) 推荐(0) 编辑
摘要: LeetCode 108. Convert Sorted Array to Binary Search Tree (将有序数组转换为二叉搜索树) 题目 链接 https://leetcode.cn/problems/convert-sorted-array-to-binary-search-tree 阅读全文
posted @ 2022-06-10 10:38 cheng102e 阅读(14) 评论(0) 推荐(0) 编辑
摘要: LeetCode 701. Insert into a Binary Search Tree (二叉搜索树中的插入操作) 题目 链接 https://leetcode.cn/problems/insert-into-a-binary-search-tree/ 问题描述 给定二叉搜索树(BST)的根节 阅读全文
posted @ 2022-06-10 08:27 cheng102e 阅读(13) 评论(0) 推荐(0) 编辑
摘要: LeetCode 235. Lowest Common Ancestor of a Binary Search Tree (二叉搜索树的最近公共祖先) 题目 链接 https://leetcode.cn/problems/lowest-common-ancestor-of-a-binary-sear 阅读全文
posted @ 2022-06-10 08:14 cheng102e 阅读(14) 评论(0) 推荐(0) 编辑