Skip to content

Create arrayStack #2

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

Closed
wants to merge 3 commits into from
Closed

Conversation

Williamren97
Copy link

1: The dynamic adjustment usually double the size of array when it needs more space in push(), instead of in pop().we begin by deleting the item in the head then descend halve when the array size is too large, you will see that the appropriate test is whether the stack size is less than one-fourth the array size

2: In order to avoid Loitering, WE commonly by setting the array entry corresponding to the popped item to null

1: The dynamic adjustment usually double the size of array when it needs more space in push(), instead of in pop().we begin by deleting the item in the head then descend halve when the array size is too large, you will see that the appropriate test is whether the stack size is less than one-fourth the array size

2: In order to avoid Loitering, WE commonly by setting the array entry corresponding to the popped item to null
@yanglbme yanglbme closed this Sep 16, 2019
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