Conversation
|
Your solution for Validate BST is correct and efficient. You have implemented the recursive approach with min and max bounds correctly. The code is clean and easy to understand. Well done! However, note that you included an unrelated solution (constructBTFromPreandInorder.cpp) in the same submission. For future reference, make sure to only submit the code relevant to the problem you are solving. This helps in avoiding confusion and ensures that the evaluator focuses on the correct solution. For the Validate BST solution, you might consider adding a comment to explain the parameters of the helper function (min and max) to make it even clearer. For example: But this is optional as the code is already readable. |
No description provided.