Added doctests, exceptions, type hints, fixed bug, remove trailing whitespace for infix_to_prefix_conversion#10063
Closed
hollowcrust wants to merge 0 commit intoTheAlgorithms:masterfrom
Closed
Added doctests, exceptions, type hints, fixed bug, remove trailing whitespace for infix_to_prefix_conversion#10063hollowcrust wants to merge 0 commit intoTheAlgorithms:masterfrom
hollowcrust wants to merge 0 commit intoTheAlgorithms:masterfrom
Conversation
14 tasks
sanskark
approved these changes
Oct 8, 2023
cclauss
reviewed
Oct 8, 2023
cclauss
reviewed
Oct 8, 2023
|
|
||
|
|
||
| def infix_2_postfix(infix): | ||
| def infix_2_postfix(infix: str) -> str: |
Member
There was a problem hiding this comment.
BEFORE we modify this function we need it to have doctests. You can do that in a separate pull request and then we can circle back to this pull request AFTER the doctests have been merged.
Contributor
Author
Member
There was a problem hiding this comment.
I merged one of them that adds tests. The other one deletes the work of others but perhaps it is the right thing to do.
Contributor
Author
There was a problem hiding this comment.
ok thanks i'll work on this
Contributor
Author
14 tasks
14 tasks
Member
|
Please rebase to fix to resolve the git conflict. If you are unsure how to do that, please close this pull request and then create a new one. |
14 tasks
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your change:
Fixes #9943
File affected: data_structures/stacks/infix_to_prefix_conversion.py
and stack[-1] != "("Checklist: