cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Plz help
Plz help
Jul 2, 2014 at 2:00pm UTC
whoovian11
(117)
So if I have an array how do I convert it to a balance binary tree?
Last edited on
Jul 2, 2014 at 2:17pm UTC
Jul 2, 2014 at 2:09pm UTC
closed account (
10X9216C
)
You can sort the array, and then take the middle value as the root node with the middle of the left and right subdivisions as its children. And repeat..
Topic archived. No new replies allowed.