Added 20 solutions
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
// Author: Rodney Shaghoulian
|
||||
// Github: github.com/rshaghoulian
|
||||
// HackerRank: hackerrank.com/rshaghoulian
|
||||
|
||||
import java.util.Scanner;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.regex.PatternSyntaxException;
|
||||
@@ -13,7 +9,7 @@ public class Solution {
|
||||
public static void main(String[] args){
|
||||
Scanner scan = new Scanner(System.in);
|
||||
int testCases = Integer.parseInt(scan.nextLine());
|
||||
while (testCases > 0){
|
||||
while (testCases-- > 0){
|
||||
String pattern = scan.nextLine();
|
||||
try {
|
||||
Pattern.compile(pattern);
|
||||
|
||||
Reference in New Issue
Block a user