Add LongestValidParenthesesTest (#3612)

This commit is contained in:
laks-mi1099
2022-10-23 00:51:54 +05:30
committed by GitHub
parent bf03d16303
commit 8d4b048cb3
2 changed files with 51 additions and 15 deletions

View File

@ -43,19 +43,4 @@ public class LongestValidParentheses {
return max;
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (true) {
String str = sc.nextLine();
if ("quit".equals(str)) {
break;
}
System.out.println("Len is: " + getLongestValidParentheses(str));
}
sc.close();
}
}