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

fix GenericStack.pop() and modify toString() #45

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

Conversation

r3gor
Copy link

@r3gor r3gor commented Mar 2, 2020

  1. Call list[size] should return null (if list[size-1] is the last element of the stack), this does not happen because the pop() method does not actually eliminate any element.

  2. When pop() is called, size should never be left with a negative value.

1. Call list[size] should return null (if list[size-1] is the last element of the stack), this does not happen because the pop() method does not actually eliminate any element.

2. When pop() is called, size should never be left with a negative value.
@r3gor r3gor force-pushed the master branch 2 times, most recently from 5d85824 to 6245273 Compare March 4, 2020 06:35
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