Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solutions - Please Review ! #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sanchitpruthi
Copy link

No description provided.

Copy link

@kaurramanpreet kaurramanpreet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!!

}

/* This is Also a Two Stack Approach but here, we use "Front" to store the first element of queue, when we need to pop and element from Queue, we use the second stack
to reverse the first stack and pop fron there untill it is empty. All push operations are perfromed on first stack. */

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good explanation!!

Copy link

@kaurramanpreet kaurramanpreet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion:
Start writing in the beginning of the code that whether your code was accepted on the leetcode and if you faced any problem while attempting this question so that we can help you!!

@kaurramanpreet
Copy link

Also try rehashing!!

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