I've created an AVL Tree, with working Add and Remove methods. However, I need to print out the tree in a visual format. something like this: Image is there a relatively short way of doing so? (You can assume that i have the height of every node).
Asked
Active
Viewed 5,182 times
1 Answers
0
I doubt there's any easy way to display the data in an AVL tree besides inorder, postorder, and preorder list representations.
However, I did find this solution on an old Stack Overflow question.

Community
- 1
- 1

Robert Bradshaw
- 16
- 1