Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update 0022-generate-parentheses.java#3403

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Tetsuya3850 merged 1 commit intoneetcode-gh:mainfroman0nh4x0r:patch-1
Aug 4, 2024

Conversation

an0nh4x0r
Copy link
Contributor

@an0nh4x0ran0nh4x0r commentedApr 20, 2024
edited
Loading

Important

Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

@an0nh4x0r
Copy link
ContributorAuthor

@neetcode-gh updated the way stack was iterated using shorter and much concise syntax for this problem, using the java's enhanced for loop

@Tetsuya3850
Copy link
Collaborator

Hi, thank you for the contribution! Agree that the code you provided is better. Since String is immutable, adding would re-create the string every time which is inefficient. StringBuilder makes much more sense.

an0nh4x0r reacted with heart emoji

@Tetsuya3850Tetsuya3850 merged commit44b0e00 intoneetcode-gh:mainAug 4, 2024
@an0nh4x0r
Copy link
ContributorAuthor

Awesome 😎

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Tetsuya3850Tetsuya3850Tetsuya3850 approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@an0nh4x0r@Tetsuya3850

[8]ページ先頭

©2009-2025 Movatter.jp