You are viewing a single comment's thread. Return to all comments →
Consider the below 2 types of trees, you will know where you went wrong.
Case 1 :
20 / \ 10 2
Case 2:
18 / \ 8 20 / \ 10 30
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 →
Consider the below 2 types of trees, you will know where you went wrong.
Case 1 :
Case 2: