将二叉树转成双向链表。
将有序链表转成二叉搜索树系列
发表于
将有序数组转换成二叉搜索树
- Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.
448.Find All Numbers Disappeared in an Array
发表于
|
分类于
leetcode
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.
145. Binary Tree Postorder Traversal
发表于
|
分类于
leetcode
Given a binary tree, return the postorder traversal of its nodes’ values.