Skip to content

Bug Report for minimum-remove-to-make-valid-parentheses #4071

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

Open
Alson71 opened this issue Apr 23, 2025 · 1 comment
Open

Bug Report for minimum-remove-to-make-valid-parentheses #4071

Alson71 opened this issue Apr 23, 2025 · 1 comment

Comments

@Alson71
Copy link

Alson71 commented Apr 23, 2025

Bug Report for https://neetcode.io/problems/minimum-remove-to-make-valid-parentheses

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

Image

This is a bug in the problem Minimum To Remove to Make Valid Parentheses. Based on the following input, the minimum that would have to be removed is 6 parentheses. However, for the specific input that I provided, there are two different ways to do it. My algorithm got one of the solutions, but you have the other answer marked as correct only. I'm not sure if this happens for other testcases, but variation in answers can cause your judge to fail.

@Srihari2222
Copy link
Collaborator

@Alson71 Thanks for reporting the issue.
We are going to make some changes in the driver code and this will resolve your mentioned issue.

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

No branches or pull requests

2 participants