You are viewing a single comment's thread. Return to all comments →
because the data is between [0, 10^4],and is an integer, so
bool checkBST(Node* root) { return check(root, -1, 10001); }
Is This a Binary Search Tree?
You are viewing a single comment's thread. Return to all comments →
because the data is between [0, 10^4],and is an integer, so