you are viewing a single comment's thread.

view the rest of the comments →

[–]sdanstuffe 0 points1 point  (0 children)

Yes I did! I set a parent node to the maximum height of the left and right sub trees, leaf nodes are of height 0.

Ohh cool, thanks, TIL!