Skip to content

Commit

Permalink
updated test case in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhuzaima committed Oct 9, 2023
1 parent 2afeec3 commit 17ac6b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 0032_Longest_Valid_Parentheses.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ public int longestValidParentheses(String s) {
}


// for cases like ()(()
// for cases like (()
// also count from backwards

left = right = 0;
for (int i = s.length()-1; i >= 0; i--) {
System.out.println("left="+left+", right = " +right);
Expand Down

0 comments on commit 17ac6b4

Please sign in to comment.