如何生产具有最大和最小可能高度的BST?

时间:2019-05-13 11:53:22

标签: data-structures perl-data-structures recursive-datastructures chdatastructures

如何为这个问题画一棵树?

以正确的顺序列出键(1, 2, 3, 4, 5, 10, 9, 8, 7, 6),以便按该顺序插入键

a)a BST with max possible height b)a BST with min possible height

显示每种情况下的结果树。

0 个答案:

没有答案