1

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).

user3447215
  • 23
  • 1
  • 7

1 Answers1

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