Update spiral_print.py - #7674
Merged
cclauss merged 15 commits intoOct 26, 2022
Merged
Conversation
for more information, see https://pre-commit.ci
14 tasks
CaedenPH
reviewed
Oct 26, 2022
CaedenPH
left a comment
Contributor
There was a problem hiding this comment.
It seems Stage 3. and Stage 4. are the same. Is this intentional?
| # Other Easy to undersatnd Approach | ||
|
|
||
|
|
||
| def spiral_traversal(matrix: List[List[int]]) -> List[int]: |
Contributor
There was a problem hiding this comment.
Suggested change
| def spiral_traversal(matrix: List[List[int]]) -> List[int]: | |
| def spiral_traversal(matrix: list[list[int]]) -> list[int]: |
Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com>
Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com>
Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com>
Co-authored-by: Caeden Perelli-Harris <caedenperelliharris@gmail.com>
for more information, see https://pre-commit.ci
Contributor
Author
Member
|
Please do not ask for reviews when tests are failing (❌ ) because we have ~200 pull requests and this is a volunteer activity. |
Contributor
Author
|
Okay I do understand. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
cclauss
reviewed
Oct 26, 2022
Member
|
You can run the tests on your machine with |
Contributor
Author
|
yes, will see and resolve, messed in base condition |
Contributor
Author
|
After above update on running |
cclauss
approved these changes
Oct 26, 2022
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:
Added another neat approach for same question with explaination
Checklist:
Fixes: #{$ISSUE_NO}.