Conversation
|
Your BSTIterator implementation is very close to correct. However, note that in the Also, please note that the problem only requires the BSTIterator implementation. The other two files (IntersectionOfLinkedList and ReorderList) are not relevant to this problem and should not be included when submitting a solution for the BST Iterator problem. Focus on the specific problem requirements. Overall, your solution is efficient and follows the expected approach. Keep up the good work! |
|
Your BSTIterator implementation is very close to correct. However, note that in the One minor point: in the However, you included solutions for other problems in the same submission. For the purpose of this problem (BSTIterator), you should only submit the BSTIterator class. Make sure to separate solutions for different problems into different files or submissions. Also, your code comments mention "Space Complexity: O(1)" for BSTIterator, but actually it is O(h) due to the stack. Please correct that comment. Overall, your BSTIterator solution is correct and efficient. Well done! |
No description provided.