Skip to content

Fixed unhandled EmptyStackException#2606

Merged
siriak merged 1 commit into
TheAlgorithms:masterfrom
aitorfi:issue_2605
Oct 14, 2021
Merged

Fixed unhandled EmptyStackException#2606
siriak merged 1 commit into
TheAlgorithms:masterfrom
aitorfi:issue_2605

Conversation

@aitorfi

@aitorfi aitorfi commented Oct 13, 2021

Copy link
Copy Markdown
Contributor

Describe your change:

Fixed unhandled EmptyStackException in /Others/QueueUsingTwoStacks.java file plus a few warning messages.

  • Fix a bug or typo in an existing algorithm?

References

Fixes #2605

Checklist:

  • I have read CONTRIBUTING.md.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All functions and variable names follow Java naming conventions.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

@aitorfi aitorfi requested a review from siriak as a code owner October 13, 2021 18:49

@siriak siriak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see, it's not related to the stack itself, but to the usage of it. Thanks!

@siriak siriak merged commit 8094798 into TheAlgorithms:master Oct 14, 2021
@aitorfi aitorfi deleted the issue_2605 branch November 12, 2021 17:32
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.

Unhandled exception EmptyStackException in QueueUsingTwoStacks.java

2 participants