You are viewing a single comment's thread. Return to all comments →
Not bad. You should move your left < root.data < right condition to the left for performance though.
left < root.data < right
Seems like cookies are disabled on this browser, please enable them to open this website
Is This a Binary Search Tree?
You are viewing a single comment's thread. Return to all comments →
Not bad. You should move your
left < root.data < right
condition to the left for performance though.