Conversation
|
Your solution for the BST Iterator problem is correct and efficient. You have implemented the iterative in-order traversal using a stack, which is the standard approach. The time and space complexities are optimal. Well done! However, note that the problem requires the implementation of a BST Iterator, and you have provided solutions for other problems as well. In the future, make sure to only submit the relevant code for the problem at hand. Also, pay attention to file naming to avoid confusion. For the BST Iterator solution:
One minor suggestion: in the |
No description provided.