docs(DP): update LongestValidParentheses.java

This commit is contained in:
Libin Yang 2019-02-24 08:46:51 +08:00 committed by GitHub
parent 5ec25c1670
commit c725d91ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,11 +1,9 @@
import java.util.Scanner; import java.util.Scanner;
/** /**
* Given a string containing just the characters '(' and ')', find the length of * Given a string containing just the characters '(' and ')', find the length of
* the longest valid (well-formed) parentheses substring. * the longest valid (well-formed) parentheses substring.
* *
*
* @author Libin Yang (https://github.com/yanglbme) * @author Libin Yang (https://github.com/yanglbme)
* @since 2018/10/5 * @since 2018/10/5
*/ */
@ -57,7 +55,5 @@ public class LongestValidParentheses {
} }
sc.close(); sc.close();
} }
} }