English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

this has some info :)

http://cs.union.edu/~hannayd/csc077/tests.htm

2006-10-27 20:25:42 · answer #1 · answered by ☺♥? 6 · 0 0

What's the point of using a binary tree if you want to use an array? I'm not sure I understand what you're asking. If you want to create a binary search tree, this is what you do:

class TreeNode
{
Object element;
TreeNode left;
TreenNode right;

public TreeNode(Object o)
{
element = o;
}

Here is a good sample program: http://www.cs.armstrong.edu/liang/intro5e/evennumberedexercise/Exercise17_6.java

2006-10-28 03:34:02 · answer #2 · answered by Vera 2 · 1 1

fedest.com, questions and answers