You are viewing a single comment's thread. Return to all comments →
Very nice solution! My only stylistic suggestion is to replace
root.data < max_ and root.data > min_
in the third line with
min_ < root.data < max_
for ease of reading/brevity.
Seems like cookies are disabled on this browser, please enable them to open this website
Trees: Is This a Binary Search Tree?
You are viewing a single comment's thread. Return to all comments →
Very nice solution! My only stylistic suggestion is to replace
in the third line with
for ease of reading/brevity.