debug a height of node function in AVL Tree


I'm working on a project that requires me to build an AVL Tree.

The problem I'm running into is that the function that is supposed to return the height isn't working properly.

I have the entire code written and even a main function to check preorder, inorder, and postorder. The inorder is correct but the preorder and postorder are incorrect because AVL Tree balancing never takes place. That is because the height function isn't running properly!

Can someone debug the height function by changing MINIMAL amount of lines!?


Habilidades: Programação C++ , Arquitetura de software, Depuração

Veja mais: magento function category tree, avl tree code, check node children binary tree java, inserting node txt file tree java, java current node string binary tree, load save avl tree file, load save avl tree file source code, make avl tree numbers generated, online checking avl tree, project word counter avl tree data structure, reading file avl tree, wordpress function categories tree, write algorithm find inorder sccessor node threaded binary tree, avl tree code using text file, save avl tree file, avl tree binary file, avl tree text file, avl tree function applet, worst case height of avl tree, avl tree height

Acerca do Empregador:
( 0 comentários ) Irvine, United States

ID do Projeto: #22811247

3 freelancers estão ofertando em média $23 para esse trabalho


Hello Thanks for your posting. I am a senior developer so i can do it very easily if you want.I’ve read your job description carefully and I am very interested in your project. I am sure that I can finish this project Mais

$29 USD em 1 dia
(14 Comentários)

Hello. I will complete this before your deadline. I will guarantee on time and correct result. Contact me if you need my help Thanks.

$10 USD em 1 dia
(1 Comentário)

Got a knack for competitve programming, my hackerrank rating is 1683, and got 6 stars in problem solving.

$30 USD em 1 dia
(0 Comentários)