-
Notifications
You must be signed in to change notification settings - Fork 1k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong algorithm used at C-Plus-Plus/stack/maximum_size_of_balanced_bracket_sequence.cpp #7530
Comments
Hello @Rishabh7896, |
/assign |
This issue has been assigned to @Rishabh7896! |
@Rishabh7896, this issue hasn't had any activity in 5 days. It will become unassigned in 7 days to make room for someone else to contribute. |
Hey, @Rishabh7896 |
Input: )()()(((() If we will assume the answer to be the sum of the length of all valid sequences then it is correct, otherwise, it is wrong |
Thank you for the test case. But I think in this particular question, it is asked to print the maximum length of valid bracket sequence. So, we have to sum the number of brackets that make it valid. So, the solution according to me is correct. |
Please reopen this issue once you add more information and updates here. If this is not the case and you need some help, feel free to seek help from our Telegram or ping one of the reviewers. Thank you for your contributions! |
馃悰 Bug Report
(A clear and concise description of what the bug is.)
Have you read the Contributing Guidelines on Pull Requests?
This code doesnot handle the domain of question. It fails in many testcases.
The text was updated successfully, but these errors were encountered: