Skip to content

Update Stacks.java - #445

Closed
Danpatpang wants to merge 2 commits into
TheAlgorithms:masterfrom
Danpatpang:master
Closed

Danpatpang wants to merge 2 commits into
TheAlgorithms:masterfrom
Danpatpang:master

Conversation

@Danpatpang

Copy link
Copy Markdown

Hello.
I find error your code resize() method.
maxSize = 4 -> 8 (OK) / maxSize = 8 -> 4 (Error)

This picture is debug your code.

image

So, I change.
image

@Danpatpang

Copy link
Copy Markdown
Author

Fix StackOfLinkedList.java
I think Node temp is unnecessary variable.

@Danpatpang

Danpatpang commented Jun 15, 2018 via email

Copy link
Copy Markdown
Author

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