这是indexloc提供的服务,不要输入任何密码
Skip to content

Stack and queue #25

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Stack and queue #25

wants to merge 9 commits into from

Conversation

monaSalih
Copy link
Owner

No description provided.

@monaSalih
Copy link
Owner Author

monaSalih commented Oct 22, 2021

  • Can successfully push onto a stack

  • Can successfully push multiple values onto a stack

  • Can successfully pop off the stack

  • Can successfully empty a stack after multiple pops

  • Can successfully peek the next item on the stack

  • Can successfully instantiate an empty stack

  • Calling pop or peek on empty stack raises exception

  • Can successfully enqueue into a queue

  • Can successfully enqueue multiple values into a queue

  • Can successfully dequeue out of a queue the expected value

  • Can successfully peek into a queue, seeing the expected value

  • Can successfully empty a queue after multiple dequeues

  • Can successfully instantiate an empty queue

  • Calling dequeue or peek on empty queue raises exception

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.

1 participant