You are viewing a single comment's thread. Return to all comments →
no need for a traversal. Take the node->data of each node directly from the vector values given in private. Rest logic is spot on. Did the same :)
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 →
no need for a traversal. Take the node->data of each node directly from the vector values given in private. Rest logic is spot on. Did the same :)