如何在c ++中使用数组构造平衡二叉树? [英] how to construct balanced binary tree using array in c++?

查看:298
本文介绍了如何在c ++中使用数组构造平衡二叉树?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

数组大小是固定的,并创建一个平衡的二叉树.........

array size is fixed, and create a balanced binary tree.........

推荐答案

使用数组的快速二进制搜索树(BST) [ ^ ]


那么,你的问题是什么?你的代码在哪里?你不指望我们为你写它吗?我们不做家庭作业/作业



你如何开始谷歌的东西,给它一个很好的诚实的去,并在这里问问题,如果你无法想象的东西特定的 - 否则你永远不会知道我们是否用勺子喂你
so, whats your problem ? where's your code ?? you don't expect us to write it for you do you ? we don't do homework/assignments

how about you google for something to start with, give it a good honest go, and ask questions here if you cant figure something specific out - else you'll never learn if we spoon-feed you


没有什么比阅读,理解理论更好,然后自己编写代码。你应该开始谷歌搜索平衡二叉树 [ ^ ]。
There nothing better than reading, understanding the theory and then write yourself the code. You should start Googling for "balanced binary tree"[^].


这篇关于如何在c ++中使用数组构造平衡二叉树?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆