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 0155-min-stack.kt#3206

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
a93a merged 1 commit intoneetcode-gh:mainfromthemlkang42:0155-min-stack-kotlin
Jan 7, 2024

Conversation

themlkang42
Copy link
Contributor

Updating the solution to use a Stack instead of a LinkedList since the problem is categorized as a stack problem and it will match the video solution closely

@a93aa93a merged commit25d75fb intoneetcode-gh:mainJan 7, 2024
@a93a
Copy link
Collaborator

a93a commentedJan 7, 2024

Thanks for the input, I've merged this now. It does make the solution more clear, readible, and more precisly follow Neetcodes solution.

It's also common to simulate a Stack using LinkedList for less overhead and better performance (Not in a polynomial time sense, but in less overhead sense), but for readibility your change is better for this situation !

Thanks.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
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
@themlkang42@a93a

[8]ページ先頭

©2009-2025 Movatter.jp