You are viewing a single comment's thread. Return to all comments →
You muppets. The javascript implementation contains all nodes in the right. Creating a right skewed tree.
e.g.
{ "data": 3, "left": null, "right": { "data": null, "left": null, "right": { "data": null, "left": null, "right": { "data": null, "left": null, "right": { "data": null, "left": null, "right": null } } } } }
Seems like cookies are disabled on this browser, please enable them to open this website
Tree: Height of a Binary Tree
You are viewing a single comment's thread. Return to all comments →
You muppets. The javascript implementation contains all nodes in the right. Creating a right skewed tree.
e.g.