Skip to content

completed LL-2#1424

Open
anjanaouseph wants to merge 1 commit intosuper30admin:masterfrom
anjanaouseph:master
Open

completed LL-2#1424
anjanaouseph wants to merge 1 commit intosuper30admin:masterfrom
anjanaouseph:master

Conversation

@anjanaouseph
Copy link
Copy Markdown

No description provided.

@super30admin
Copy link
Copy Markdown
Owner

Your solution for BST Iterator is excellent. It correctly implements the in-order traversal using a stack, and the methods next and hasNext are efficient. The code is clean and easy to understand.

One minor point: in the dfs method, you are using a while loop to traverse left. This is standard. However, you might consider adding comments to explain the purpose of the dfs function for clarity, but it is not necessary since the function name is descriptive.

Overall, great job!

@super30admin
Copy link
Copy Markdown
Owner

Note: The student has provided multiple solutions in one file. Focus only on the BST Iterator solution (problem52.py) for this evaluation.

Let's begin the evaluation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants