You are viewing a single comment's thread. Return to all comments →
Nitpick: Node's constructor Node(int data) initializes .left and .right to null so those two lines are unneeded.
Node
Node(int data)
.left
.right
null
Seems like cookies are disabled on this browser, please enable them to open this website
Binary Search Tree : Insertion
You are viewing a single comment's thread. Return to all comments →
Nitpick:
Node
's constructorNode(int data)
initializes.left
and.right
tonull
so those two lines are unneeded.