Skip to content

Conversation

arjunsahas
Copy link

No description provided.

@super30admin
Copy link
Owner

Your implementation of MyQueue is well-done and matches the reference solution in terms of correctness, time complexity, and space complexity. The code is clean and easy to understand. One small suggestion would be to add more detailed comments or JavaDoc for each method to make the code even more readable and maintainable. For example, explaining the peek() method's role in ensuring the outStack is populated before operations could be helpful for future readers.

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