小小程序媛 |
|
||
得之坦然,失之淡然,顺其自然,争其必然 |
2015年10月17日
摘要:
题目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... 阅读全文
|
Copyright © 2024 Coding菌
Powered by .NET 8.0 on Kubernetes |