摘要:
题目Given an array where elements are sorted in ascending order, convert it to a height balanced BST.分析给定一个有序序列,构造一颗平衡的二叉查找树。思想:序列中值构造根节点,递归,前半...
阅读全文
摘要:
题目Given inorder and postorder traversal of a tree, construct the binary tree.Note: You may assume that duplicates do not exist in the tree.Sh...
阅读全文