Increasing Order Search Tree
Given a binary search tree, rearrange the tree inin-orderso that the leftmost node in the tree is now the root of the tree, and every node has no left child and only 1 right child.
分析
DFS,这里传入尾做参数,空的时候返回
Last updated
Given a binary search tree, rearrange the tree inin-orderso that the leftmost node in the tree is now the root of the tree, and every node has no left child and only 1 right child.
分析
DFS,这里传入尾做参数,空的时候返回
Last updated