文章 2022-02-16 来自:开发者社区

​LeetCode刷题实战426:将二叉搜索树转化为排序的双向链表

今天和大家聊的问题叫做 将二叉搜索树转化为排序的双向链表,我们先来看题面:https://leetcode-cn.com/problems/convert-binary-search-tree-to-sorted-doubly-linked-list/Convert a BST to a sorted circular doubly-linked list in-place. Think of ....

​LeetCode刷题实战426:将二叉搜索树转化为排序的双向链表
文章 2022-02-16 来自:开发者社区

​LeetCode刷题实战285:二叉搜索树中的顺序后继

今天和大家聊的问题叫做 二叉搜索树中的中序后继,我们先来看题面:https://leetcode-cn.com/problems/inorder-successor-in-bst/Given a binary search tree and a node in it, find the in-order successor of that node in the BST.The successo....

文章 2022-02-15 来自:开发者社区

​LeetCode刷题实战99:恢复二叉搜索树

今天和大家聊的问题叫做 恢复二叉搜索树,我们先来看题面:https://leetcode-cn.com/problems/recover-binary-search-tree/You are given the root of a binary search tree (BST), where exactly two nodes of the tree were swapped by mista....

​LeetCode刷题实战99:恢复二叉搜索树
文章 2022-02-15 来自:开发者社区

​LeetCode刷题实战96:不同的二叉搜索树

今天和大家聊的问题叫做 不同的二叉搜索树,我们先来看题面:https://leetcode-cn.com/problems/unique-binary-search-trees/Given n, how many structurally unique BST's (binary search trees) that store values 1 ... n?题意给定一个整数 n,求以 1 ......

​LeetCode刷题实战96:不同的二叉搜索树

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

算法编程

开发者社区在线编程频道官方技术圈。包含算法资源更新,周赛动态,每日一题互动。

+关注