-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Hi ValidParentheses.java #125
Comments
path : leetcode/string |
Please add complete code snippet |
God, this bug has been around for more than a year. |
Hey, Is this issue solved and assigned? |
邮件已收到,我会尽快回复。
|
来信收到,谢谢,祝您一切顺利!
|
您好,您的邮件我已收到!祝工作顺利,天天开心。。。
|
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
@richardkelly2014 can you please see this, #209 . |
else if(s.charAt(i) == ')' && !stack.isEmpty() && stack.peek() == ')') {
} else if(s.charAt(i) == ']' && !stack.isEmpty() && stack.peek() == ']') {
} else if(s.charAt(i) == '}' && !stack.isEmpty() && stack.peek() == '}') {}
this code is bug
repair:
else if (s.charAt(i) == ')' && !stack.isEmpty() && stack.peek() == '(') {
} else if (s.charAt(i) == ']' && !stack.isEmpty() && stack.peek() == '[') {
} else if (s.charAt(i) == '}' && !stack.isEmpty() && stack.peek() == '{') {}
The text was updated successfully, but these errors were encountered: