Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Python, Java, Go, Kotlin / 0155-minimum-stack.md #3934

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JCCourt
Copy link

@JCCourt JCCourt commented Mar 15, 2025

Where
Neetcode > Roadmap > Stack > Min Stack > Solution > 3. One Stack

Current
All code templates on neetcode and leetcode (Python, Java, C++, JavaScript and C#) asked for val as the naming convention for the int input for the push function.

Problem
However for the solution "3. One Stack" Python, Java, Go & Kotlin input naming variable was called x
Note on leetcode they ask for val in all relative code templates.

Fix
Python, Java & Go 3. One Stack solutions were updated to match variable naming in code template and other solutions to val
Kotlin was updated to "`val`" (Ignore qoutations) where backticks needed escape reserved word. Also as per leetcode templates

All code has been tested on leetcode and confirmed working. solutions.

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.

1 participant